Author: swaino | Posted on: 11/13/2009 10:13:43 AM | Views : 529

Hi,
I have a property on my 1st page which is public. When it posts to another page, the 2nd page accesses the public property on the 1st page.  This is done in the Page_Load event in the 2nd page.
Now when I click on a button, I do the same check that I did in the Page_Load event, instead of PreviousPage being set, it is now nothing.  This then causes an exception as I'm trying to access the public property off the 1st page.
Why is this happening when the PreviousPage object exists in the Page_Load event but not in the button click handler?

...

Go to the complete details ...