How edit my URL on button click
-
Hi all, Any one suggest me how to edit my url and submit the page on button click with out using Response.redirect. for eg: www.mysite.com/default.aspx this is my page, on button click the page should submit and reload, the url should look like www.mysite.com/default.aspx?step=1 (no response.redirect, because i am losing the viewstate even though i set the EnableViewState="true") Thank you
Know is Drop, Unknown is Ocean
-
Hi all, Any one suggest me how to edit my url and submit the page on button click with out using Response.redirect. for eg: www.mysite.com/default.aspx this is my page, on button click the page should submit and reload, the url should look like www.mysite.com/default.aspx?step=1 (no response.redirect, because i am losing the viewstate even though i set the EnableViewState="true") Thank you
Know is Drop, Unknown is Ocean
You'll probably get better answers over in the ASP.NET forum[^].
Simon
-
Hi all, Any one suggest me how to edit my url and submit the page on button click with out using Response.redirect. for eg: www.mysite.com/default.aspx this is my page, on button click the page should submit and reload, the url should look like www.mysite.com/default.aspx?step=1 (no response.redirect, because i am losing the viewstate even though i set the EnableViewState="true") Thank you
Know is Drop, Unknown is Ocean
Hello, What you are asking is to change to url, while doing a postback event. I'm sorry, this can't happen in a fashionly manner. When you use a redirection (or a hyperlink -- so whenever you modify the url), you will lost the viewstate. Why is that so? Because viewstate is stored in a form value. It is actually stored into a hidden field of the page. If you change the url, the data in this field is lost because you are causing a page change, not a page postback event. You should post here what you want to do, we can help you manage the situation in another way. One suggestion here could be that you use the ViewState object instead of a query string parameter to manage the current step of your wizard.
______________________ Dominic Goulet FroggedSoft