Home > DeveloperSection > Forums > Set calendar extender format
Takeshi Okada
Takeshi Okada

Total Post:89

Posted on    August-27-2014 2:06 AM


 1 Reply(s)
 954  View(s)
Rate this:

Does anyone know if there is a way of specifying the Format of a calendar extender with a dynamic value from the aspx? I tried this but it doesnt seem to set the format at all. Does anyone see anything wrong with it:

    <asp:TextBox ID="tbStartDate" runat="server" />

    <act:CalendarExtender ID="clndrStartDate" PopupPosition="Right" runat="server"

 Format='<%# DefaultDateFormat %>' TargetControlID="tbStartDate"></act:CalendarExtender>

and i have the DefaultDateFormat getter in a base page of the code beheind like this:

public static string DefaultDateFormat


        get { return "dd/MM/yyyy"; }


Any help would be appretiated.

Thank you

Sumit Kesarwani

Total Post:378

Posted on    August-27-2014 11:24 PM

Hi Takeshi, 

Call DataBind Method on calendar extender instance.


Don't want to miss updates? Please click the below button!

Follow MindStick