Put this line on the page load event in which you will be reach on from the Back button of the Browser.
Example : Let You have Page "Default.aspx" and "Mypage.aspx". IF You have kept line in Defult.aspx.cs page load event and You use beck button of "MyPage.aspx" page in browser. Now You will see that the last changes on the form will be remain as It was before.
Note : Don't Keep this line inside of page.IsPostBack condition.
how to use this code in page
ReplyDeletePut this line on the page load event in which you will be reach on from the Back button of the Browser.
DeleteExample : Let You have Page "Default.aspx" and "Mypage.aspx". IF You have kept line in Defult.aspx.cs page load event and You use beck button of "MyPage.aspx" page in browser. Now You will see that the last changes on the form will be remain as It was before.
Note : Don't Keep this line inside of page.IsPostBack condition.