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
|
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
|