Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: Visual Studio 2013 MaskedEditValidator not validating dates properly [27589]

$
0
0
When validating, 01/05/2013 is a valid date where 01/13/2013 is not a valid date.
Code:
<asp:Label runat="server" AssociatedControlID="ShowEndDate" CssClass="col-md-6 control-label">Show end date</asp:Label>
<div class="col-md-6">
<asp:TextBox runat="server" ID="ShowEndDate" CssClass="form-control"/><ajaxtoolkit:calendarextender
TargetControlID="ShowEndDate"
runat="server" />
<ajaxtoolkit:maskededitextender ID="MaskedEditExtender3" runat="server"
TargetControlID="ShowEndDate"
Mask="99/99/9999"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="Date"
PromptCharacter="_"
CultureName = "en-GB"
ErrorTooltipEnabled="True" UserDateFormat="DayMonthYear" />
&nbsp;&nbsp;
Comments: We do not see any problems with the described behavior so far. When you specify the "en-GB" culture for MaskedEditExtender, it assumes that a date will be entered in the dd/MM/yyyy format. Hence, 01/13/2013 is not a valid date, because it means you try to enter the 13th month, so MaskedEditValidator will not validate it.   Would you please share more details about the problem you faced?

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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