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