Problem with Request.QueryString

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rohan Sootarsin
    New Member
    • Nov 2010
    • 1

    #1

    Problem with Request.QueryString

    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

    Code:
    string strAuthNo = Request.QueryString["AuthNo"].ToString();
    And then call the webservice

    Code:
    webservice.confirmdetails(strAuthNo);
    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?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I have had similar issues (when the browser in question was IE)
    It turned out to be related to the cache settings for me.
    (i was setting the "no cache" setting and ie was puking on it)

    Comment

    Working...