Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

CalendarExtender + MaskedEditExtender loosing / after loosing focus

$
0
0

Hi I have a text box that i populate on page load with todays short date , ever since adding the maskededitextender the date comes in as

12192012 instead of 12/19/2012 as well when you click on the box the calendarextender fires and lets me select 12/19/2012 but once focus is lost it changes to 12192012 how do i fix this?

here is the markup

<asp:TextBox ID="EventDateTB" runat="server"
ontextchanged="EventDateTB_TextChanged"></asp:TextBox>
<asp:MaskedEditExtender ID="EventDateTB_MaskedEditExtender" runat="server"
CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder=""
CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
Mask="99/99/9999" TargetControlID="EventDateTB">
</asp:MaskedEditExtender>
<asp:CalendarExtender ID="EventDateTB_CalendarExtender" runat="server"
Enabled="True" Format="MM/dd/yyyy" TargetControlID="EventDateTB">
</asp:CalendarExtender>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>