Priya Bm

Priya Bm

  • NA
  • 33
  • 24.3k

Disable weekend date in ajax calendar

Jul 10 2015 6:16 AM
Hi,
 
I want to disable weekend date using ajax calendar control.
 
Below  js code is working but its not disabled in calendar. How to do this using c#? 
 
function detect_sunday(sender, args) {
if (sender._selectedDate.getDay() == 0) {
sender._selectedDate = new Date();
// set the date back to the current date
sender._textbox.set_Value(sender._selectedDate.format(sender._format));
//alert("You can't select sunday!");
}
}
 
Pls help 

Answers (2)