Query String

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I save values in Query String Could u please give me example. I
don't want to save as using Response.redirec
 
Bobby,
your post is unclear. Do you want an example of how to put values on a
querystring? Or do you want to retrieve the values on the querystring in the
target requested page? Request.QueryString is a NameValueCollection object in
ASP.NET.
Peter
 
How can I save values in Query String Could u please give me example. I
don't want to save as using Response.redirec

QueryString is read-only and you can't change it, because this is how
the page was queried from a browser. Please explain your problem in
more detail.
 
Actually I want to check weather my querystring is empty or not.
if (Request.QueryString["Token"] != null && Request.QueryString["Token"]
!= "")
But I want to put value in Querstring e.g in Token ="ABC" If I use this
Response.Redirect("Admin.aspx?Token=" + "ABC"); then before testing that if
it is null or not it is redirecting me to Admin.aspx page. I just want to
save that value in code behind and want to chect if it is null or not
 
to add it to the current page, you redirect to the current page with the
token added. this will update the browsers url.

-- bruce (sqlwork.com)
Actually I want to check weather my querystring is empty or not.
if (Request.QueryString["Token"] != null && Request.QueryString["Token"]
!= "")
But I want to put value in Querstring e.g in Token ="ABC" If I use this
Response.Redirect("Admin.aspx?Token=" + "ABC"); then before testing that if
it is null or not it is redirecting me to Admin.aspx page. I just want to
save that value in code behind and want to chect if it is null or not






Peter Bromberg said:
Bobby,
your post is unclear. Do you want an example of how to put values on a
querystring? Or do you want to retrieve the values on the querystring in the
target requested page? Request.QueryString is a NameValueCollection object in
ASP.NET.
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
 
Back
Top