I'm exactly trying to do a text box function like the third text box on this page. I am trying to use the Calendar ActMinder control with a Masked Identifier, because I do not want the user to enter anything except the valid date in the box. On my maskededitextender I have a mask of "99/99/9999", but it only seems to work when the date is actually 8 digits (for example 2000/12/12) and not when the date 7 or 6 digits (Like 1 / 1/2000 or 1/14/2000) mask screw up when the date is less than 8 digits. & Gt text box runat = "server" id = "txtDateAvailable" width = "150px" maxlength = "50"; & Lt; / ASP:;: Here my code is ASP
& lt text box & gt; & Lt; ASP: CalendarExtender id = "calDateAvailable" runat = "server" TargetControlID = "txtDateAvailable" format = "D" PopupPosition = "OK" & gt; & Lt; / ASP: CalendarExtender & gt; & Lt; ASP: MaskedEditExtender id = "mskDateAvailable" runat = "server" targetcontrolid = "txtDateAvailable" mask = "99/99/9999" clearmaskonlostfocus = "false" MaskType = "none" & gt; & Lt; / ASP: MaskedEditExtender & gt; I can figure out how MM / DD / YYYY instead of M / D / YYYY get the date format of CalendarExtender that will fix it.
is a format property Use it to set to Format = "MM / dd / yyyy"
Comments
Post a Comment