Welcome Guest Search | Active Topics | Sign In | Register

Date Control set MinValidDate using Javascript Options
Saji
Posted: Wednesday, March 26, 2008 7:03:23 PM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
I am using two date controls in my aspx form, FromDate and ToDate, by default in Code Behind, I have set

.MinValidDate = DateTime.Now
.VisibleDate = DateTime.Now

But when user selects the FromDate, I have to set the MinValidDate & VisibleDate of ToDate to FromDate + 1, or in otherway system should not allow user to select MinValidDate of ToDate less than the FromDate. This can be achived through code behind, but i dont want to refresh the page. How can i set it through javascript:

Saji
eo_support
Posted: Wednesday, March 26, 2008 9:10:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I do not believe you can do that on the client side. Your best option would be using a CallbackPanel and then set it through Callback.

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.