on 06-15-2005 12:05 AM
I am trying to call a method when the back button is clicked to make sure my pages are all up-to-date.
How can I capture the back button event?
Any help is greatly appreciated.
For those who might be interested, I will rephrase the problem and provide my work around it.
Say I am in page 1, a summary page, and click on one record to go to page 2, which holds the detail info of the record I clicked.
If I click on the back button from page 1 to go back to page 1 and then try to implement any action my program was still thinking that I am still in page 2 and was trying to capture the controls on page 2. The result was that I was getting null point excpetion since these controls do not exist on the current page.
What i did is simply adding an if clause to check that at the first control of my first page can be captured, not null, before I go ahead and start capturing the inforamtion of page 2.
I hope that was helpful!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.