aspx thread: Setting session state from custom server control and restoring state in .aspx page
Hi,
I have a webpage personal_calendar.aspx page (with code-behind file
personal_calendar.cs), which hosts a custom server control. The server
control reacts to user events, and I need to set the state of the page
within a server control eventhandler ie. the user clicks on the edit
button of the control - I want to store that the page is now in edit
mode. So, after postback when the page is reloading it knows it is in
edit mode and can execute the appropriate code.
I don't appear to be able to set session variables from the dll,
implementing the server control and I don't see a way of calling code in
personal_calendar.cs to set it from there either.
It would be much appreciated if anyone could point me in the right
direction as to how this is done, or direct me to any relevant
samples/tutorials/resources on web?
Thanks,
Richard