Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to retrieve Request.QueryString

Status
Not open for further replies.

inutelinside

Technical User
Apr 28, 2005
41
0
0
US
Pax et Bonum!

I have an ASP application and I have a problem regarding QueryString.
Consider the following scenario:

This the URL that links mypage1 to mypage2

(Note: The querystring is hard-coded in the ASP)

In mypage2 I use

Dim strsourceID
strsourceID = Trim(Request.QueryString("sourceID"))

to retrieve the sourceID querystring but it returns null or nothing. It should return 120 right?

What could be the reason for this? Please help. Any idea would be appreciated.
 
do you actually see the querystring in the url in the second page?


General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
only thing with this issue that's coming to mind is a possibility of a cached page for mypage2.asp, which was never originally fed a query string, and you're just seeing a saved version of the page, try a force refresh on the page just in case ( CTRL+F5 in IE)

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
" I always think outside the 'box', because I'm never inside the 'loop' " - DreX 2005
 
I learned that when the Encoding is UTF-7 the error occurs. It solved some issues of some of our clients by using Windows European (ISO) but for some the error still subsists. What are other causes of this error?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top