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

Closed Issue: MaskedEdit + DateTime bug [26980]

$
0
0
I use a masked edit control to user input date and time, but I have a problem. When user input date and time, control replace time on date.

Example:

User input:

01.01.2011 12:20:33

Unfocus. Control replace time on date:

01.01.2011 01.01.20

Page:

<asp:TextBox ID="FromDate" runat="server"></asp:TextBox>
<asp:MaskedEditExtender ID="FromDateTimeMaskedEdit" runat="server"
TargetControlID="FromDate"
Mask="99/99/9999 99:99:99"
MessageValidatorTip="true"
OnFocusCssClass="timeeditfocus"
OnInvalidCssClass=".timeeditinvalid"
MaskType="DateTime"
ErrorTooltipEnabled="True"
UserDateFormat="DayMonthYear"
UserTimeFormat="TwentyFourHour" />
<asp:MaskedEditValidator ID="FromDateTimeMaskedEditValidator" runat="server"
ControlExtender="FromDateTimeMaskedEdit"
ControlToValidate="FromDate"
IsValidEmpty="False"
EmptyValueMessage="Date and time are required"
InvalidValueMessage="Date and/or time is invalid"
Display="Dynamic"
TooltipMessage="Input a date and time"
EmptyValueBlurredText="*"
InvalidValueBlurredMessage="*" />

PS: Sorry for my bad english.
Comments: bocca, thank you for sharing your experience!

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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