Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: URL params


Message #1 by "Michal Tesar" <kariba@p...> on Wed, 12 Mar 2003 17:51:13 -0700
Hi,

I wonder how to get all parameter from url after quastion mark.

for example 

default?show=true&print=false

I would like to get string:
show=true&print=false

Is there any nice way to do it?

thanks,

Mike

Message #2 by "Kailas Tare" <kailast@i...> on Wed, 12 Mar 2003 16:58:52 -0800
You can access server variable "QUERY_STRING" using 
Request.ServerVariables["QUERY_STRING"].

-Kailas Tare

-----Original Message-----
From: Michal Tesar [mailto:kariba@p...]
Sent: Wednesday, March 12, 2003 4:51 PM
To: ASP.NET
Subject: [aspx] URL params


Hi,

I wonder how to get all parameter from url after quastion mark.

for example

default?show=3Dtrue&print=3Dfalse

I would like to get string:
show=3Dtrue&print=3Dfalse

Is there any nice way to do it?

thanks,

Mike


Message #3 by "Alex Smotritsky" <alex.smotritsky@v...> on Wed, 12 Mar 2003 21:37:26 -0500
I think Request.QeuryString("itemName") still works in asp.net no?


-----Original Message-----
From: Kailas Tare [mailto:kailast@i...] 
Sent: Wednesday, March 12, 2003 7:59 PM
To: ASP.NET
Subject: [aspx] RE: URL params


You can access server variable "QUERY_STRING" using
Request.ServerVariables["QUERY_STRING"].

-Kailas Tare

-----Original Message-----
From: Michal Tesar [mailto:kariba@p...]
Sent: Wednesday, March 12, 2003 4:51 PM
To: ASP.NET
Subject: [aspx] URL params


Hi,

I wonder how to get all parameter from url after quastion mark.

for example 

default?show=true&print=false

I would like to get string:
show=true&print=false

Is there any nice way to do it?

thanks,

Mike





  Return to Index