Problem: You are requesting QueryString’s in ASP but nothing happens and the value seems to be empty.
Cause: You cannot use default documents when requesting QueryString’s. For example:
http://www.somefile.com/search/index.asp?q=hello
Would pick up that the query string “q” is set to “hello.” However:
http://www.somefile.com/search/?q=hello
Would not pick up anything despite index.asp being loaded as the default document.
Fix: Enter the full url instead of skipping out the file name.
Don't have time to check my blog? Get a weekly email with all the new posts. This is my personal blog, so obviously it is 100% spam free.
Tags: asp, query strings, variables
This entry was posted on Thursday, December 30th, 2004 at 4:58 pm and is filed under Programming, Tech. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.