Persisting Checkbox state if browser back is clicked after postbacks - ASP.NET
I've a checkbox with autopostback=true. If i check the checkbox the postback occurs and changes a label text. But if i click back in the browser the checkbox is not returning to its previous unchecked st开发者_JAVA百科ate. How can i bring back its state?
Thank you.
1
Can i write some JavaScript to persist the state of a control?
NLV
The short answer is that you can't. The browser does not inform the server of user initiated events, such as the back button. Therefore, there is no back button event you can code against.
精彩评论