2
。我想检索一个查询字符串参数的值。我如何在Infopath的表单代码中做到这一点?在InfoPath如何获得查询字符串值形成
。我想检索一个查询字符串参数的值。我如何在Infopath的表单代码中做到这一点?在InfoPath如何获得查询字符串值形成
几种解决方案:
来自这两个环节的InfoPath表单代码是很容易的URL以信息:
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
string qryValue = e.InputParameters["MyQueryValue"];
//qryValue would return 1 for the URL "http://www.blabla.com/myform.xsn?MyQueryValue=1"
}