How to 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
If you redirect (for this read reload), you will not get any viewstate, you are reloading the page. Can you not just set a Viewstate-ed variable when you post back in the button click and re-bind your page?