Wednesday, March 21, 2012

passing a querystring

hey all,
i know i can do response.redirect("my.aspx?id=1")

but what if i'm doing a postback, is there something similar to querystring?

thanks,
rodcharHello,

Request.QueryString allows to read querystring parameters during a postback.
Is this what you are looking for ?

--
Patrice

"rodchar" <rodchar@.discussions.microsoft.coma crit dans le message de
news: 2ACC9430-3838-4BA9-A359-1F352434FF08@.microsoft.com...

Quote:

Originally Posted by

hey all,
i know i can do response.redirect("my.aspx?id=1")
>
but what if i'm doing a postback, is there something similar to
querystring?
>
thanks,
rodchar


Use the viewstate collection or add a HiddenField.

0 comments:

Post a Comment