F
Fredrik Rodin
Hi!
I need to be able to change, add or remove items in the QueryString.
Let say I have the following scenario:
Page_1.aspx display a dropdown list. This list is post-back enabled. It can
also change the selected item by requesting the querystring ?color=red.
If I browse to the page via the link
http://localhost/page_1.aspx?color=green, the background-color will be -
green. If I now select another color from the dropdown, let say red, I want
to change the background-color to red and ALSO set the querystring 'color'
to the value "red". I thought I could somehow manipulate the ViewState with
the following line:
ViewState.Add("color", "red")
However, this line dows not change the QueryString. i thought about
response.redirect, but that will post the page twice, right?
So, does anybody have any idea how to do this? Can I manipulate the
QueryString at run-time?
Thanks in advance,
Fredrik
I need to be able to change, add or remove items in the QueryString.
Let say I have the following scenario:
Page_1.aspx display a dropdown list. This list is post-back enabled. It can
also change the selected item by requesting the querystring ?color=red.
If I browse to the page via the link
http://localhost/page_1.aspx?color=green, the background-color will be -
green. If I now select another color from the dropdown, let say red, I want
to change the background-color to red and ALSO set the querystring 'color'
to the value "red". I thought I could somehow manipulate the ViewState with
the following line:
ViewState.Add("color", "red")
However, this line dows not change the QueryString. i thought about
response.redirect, but that will post the page twice, right?
So, does anybody have any idea how to do this? Can I manipulate the
QueryString at run-time?
Thanks in advance,
Fredrik