<asp:TextBox ID="txtDOB" runat="server"></asp:TextBox> <cc1:CalendarExtender ID="DOBCalendarExtender" TargetControlID="txtDOB" runat="server" Format= "<%# DisplayUserDateFormat()%>" PopupButtonID="DOBImageButton" OnClientDateSelectionChanged="checkDate"> </cc1:CalendarExtender>
public string DisplayUserDateFormat() { String strDob = "dd-MMM-yyyy"; return strDob ; }
DOBCalendarExtender.Format = DisplayUserDateFormat();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)