Search code examples
.netresponse.redirect

Adding viewstate to new instance of page (.Net)


I develop an Aspx-page and when some control on the page is triggered, I want to redirect the browser to a new instance of the page, adding some url-parameters. But I also would like to restore possible changes, which the user might have made between first visiting the page and clicking on the control which caused the Response.Redirect. If I just redirect, the changes are lost.


Solution

  • Use Server.Transfer instead.