I have a user control with a textbox for date of birth.
Contact.ascx
Date Of Birth:
<asp:TextBox ID="txtDOB" runat="server" CssClass="Date"></asp:TextBox>
<a href='javascript:void(0);'><img src="../Images/Calendar_scheduleHS.png" alt="From date" runat="server" id="ImageButtonDOB" /></a>
<cc1:MaskedEditExtender ID="MaskedEditExtenderDOB" runat="server"
TargetControlID="txtDOB"
Mask="99/99/9999"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="Date"
ErrorTooltipEnabled="True"
Century="2000">
</cc1:MaskedEditExtender>
<cc1:CalendarExtender ID="CalendarExtenderDOB" runat="server"
Format="dd/MM/yyyy"
TargetControlID="txtDOB"
PopupButtonID="ImageButtonDOB">
</cc1:CalendarExtender>
This control gets dynamically loaded on the Main.aspx page several times.
On postback the I can still read the data as dd/MM/yyyy but when it renders again the data turns to MM/dd/yyyy.
What fun?
Comments: Issue is closed as it is fixed with April 2013 release.
Contact.ascx
Date Of Birth:
<asp:TextBox ID="txtDOB" runat="server" CssClass="Date"></asp:TextBox>
<a href='javascript:void(0);'><img src="../Images/Calendar_scheduleHS.png" alt="From date" runat="server" id="ImageButtonDOB" /></a>
<cc1:MaskedEditExtender ID="MaskedEditExtenderDOB" runat="server"
TargetControlID="txtDOB"
Mask="99/99/9999"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="Date"
ErrorTooltipEnabled="True"
Century="2000">
</cc1:MaskedEditExtender>
<cc1:CalendarExtender ID="CalendarExtenderDOB" runat="server"
Format="dd/MM/yyyy"
TargetControlID="txtDOB"
PopupButtonID="ImageButtonDOB">
</cc1:CalendarExtender>
This control gets dynamically loaded on the Main.aspx page several times.
On postback the I can still read the data as dd/MM/yyyy but when it renders again the data turns to MM/dd/yyyy.
What fun?
Comments: Issue is closed as it is fixed with April 2013 release.