"Mike" <mi**@hello.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Is it possible to loop round all querystring parameters in a web page
(i.e. access them without hardcoding them)?
Request.QueryString doesn't support a Contents property (like
Session) so you'll probably have to pull the QueryString apart
yourself, something like :
sQS = Request.QueryString
For Each eItem in Split( sQS, "&" )
sName = Left( eItem, Instr( eItem & "=", "=" ) - 1 )
Response.Write sName _
& " = " & Request.QueryString( sName ) _
& "<br>"
Next
Watch out; you may /still/ fall foul of URLEncode'd parameter names.
HTH,
Phill W.