Hi I am having problems passing data to a webservice from a querystring
So I have a link in an email which points to
http://www.test.com/confirmdetails. aspx?AuthNo=112 24442
On the confirmdetails. aspx page I have a call to a webservice which basically updates a database.
All I do on confirmdetails. aspx is as follows
And then call the webservice
Now when I click the link in the email once I get the followng error
Input string was not in a correct format
If I then just click in the address bar and press enter then it works fine. What is it about the link in the email that makes this not work?
So I have a link in an email which points to
http://www.test.com/confirmdetails. aspx?AuthNo=112 24442
On the confirmdetails. aspx page I have a call to a webservice which basically updates a database.
All I do on confirmdetails. aspx is as follows
Code:
string strAuthNo = Request.QueryString["AuthNo"].ToString();
Code:
webservice.confirmdetails(strAuthNo);
Input string was not in a correct format
If I then just click in the address bar and press enter then it works fine. What is it about the link in the email that makes this not work?
Comment