Rank: Newbie Groups: Member
Joined: 2/16/2009 Posts: 2
|
Having quite a large problem with users hitting their back button and the calendar control forgetting the selectedDate.
I have turned off auto postback on the calendar control because I need this website to be as user friendly as possible. It works fine and I can read the selectedDate of the control, but if a user proceeds to the next page and then clicks their back button, the Calendar control's selected date will be whatever was set up in the page load event. Yes...I am setting the selected date in the page load event inside the typical "If Not IsPostBack Then" condition.
Is there a trick to getting around this problem?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There isn't much you can do if you set it in your Page_Load. The only way around this is to set AutoPostBack so that whenever user changes selection it goes back to the server side, you can then remember the new value and give the Calendar again next time you hit Page_Load.
Thanks!
|