When my Infopath form loaded in the query string i will get the value. I would like to retrieve the value of a query string parameter. How can I do that in Infopath's form code?
Asked
Active
Viewed 6,669 times
2 Answers
2
Several solutions:
Taking information from those two links the Infopath form code is pretty easy for the 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"
}

Dennis G
- 21,405
- 19
- 96
- 133
1
Please go through this blog
http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx

Govind
- 544
- 1
- 6
- 23