I had a problem similar to yours and considered using this. I could not find any way, outside of a redirect, to alter the query string, which as a previous poster noted, will be not be treated as a PostBack, but rather as a new request. You can later the
view state or the session (if you're willing to rethink the how you're code is set up) but as I understand it, Http.Context.Items is the closest to what you want.
mckrecker
Participant
894 Points
170 Posts
Re: Appending QueryString on Postback?
Oct 27, 2008 03:40 PM|LINK
You might consider HttpContext.Items, using HttpContext.Items.Add("name","value").
http://aspnet.4guysfromrolla.com/articles/060904-1.aspx
I had a problem similar to yours and considered using this. I could not find any way, outside of a redirect, to alter the query string, which as a previous poster noted, will be not be treated as a PostBack, but rather as a new request. You can later the view state or the session (if you're willing to rethink the how you're code is set up) but as I understand it, Http.Context.Items is the closest to what you want.