Saturday, March 17, 2012

Highlighting the current date in AJAX CALENDER CONTROL



Add the following script to your aspx page

function CurrentDateShowing(e) 
    {        
        if (!e.get_selectedDate() || !e.get_element().value)
        e._selectedDate = (new Date()).getDateOnly(); 
    }   

and set the property OnClientShowing="CurrentDateShowing".

Example: