Welcome Guest Search | Active Topics | Sign In | Register

Back button and Calendar Options
oberon_dog
Posted: Thursday, October 21, 2010 3:49:19 AM
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?
eo_support
Posted: Thursday, October 21, 2010 7:49:54 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.