NLV
NLV

Reputation: 21641

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 state. How can i bring back its state?

Thank you.

1

Can i write some JavaScript to persist the state of a control?

NLV

Upvotes: 0

Views: 1182

Answers (1)

Jason Berkan
Jason Berkan

Reputation: 8884

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.

Upvotes: 2

Related Questions