Make maskededit support the DD-mmm-yyyy format (maskededit date for DD-mmm-yyyy)

Source: Internet
Author: User
<% @ Page Language = "C #" %>

<% @ register Assembly = " ajaxcontroltoolkit "namespace = " ajaxcontroltoolkit "tagprefix = " ajaxtoolkit " %>

<!Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<ScriptRunat= "Server">

</Script>

< Html Xmlns = "Http://www.w3.org/5o/xhtml" >
< Head Runat = "Server" >
< Title > </ Title >
</ Head >
< Body >
< Form ID = "Form1 ″ Runat = "Server" >
< Div >
< Div >
< Ajaxtoolkit: toolkitscriptmanager ID = "Toolkitscriptmanager1 ″ Runat = "Server" >
</ Ajaxtoolkit: toolkitscriptmanager >
< Strong > Enter date (Format: dd-mmm-yyyy < Em > DD-mmm-yyyy </ Em > ): </ Strong >
< BR />
< ASP: textbox ID = "Textbox2 ″ Runat = "Server" Readonly = "False" />
< Ajaxtoolkit: maskededitextender ID = "Maskededitextender2 ″ Runat = "Server" Clearmaskonlostfocus = "False"
Masktype = "NONE" Mask = "99-lll-9999 ″ Targetcontrolid = "Textbox2 ″ Filtered = "-" />
< Ajaxtoolkit: maskededitvalidator ID = "Maskededitvalidator2 ″ Runat = "Server" Controltovalidate = "Textbox2 ″
Controlextender = "Maskededitextender2 ″ Emptyvaluemessage = "Start Date is required"
Invalidvaluemessage = "Date" Is invalid "isvalidempty = "False" Tooltipmessage = "Input A date"
Enabled = "True" />
< Ajaxtoolkit: calendarextender ID = "Calendarextender3 ″ Runat = "Server" Targetcontrolid = "Textbox2 ″
Format = "DD-mmm-YYYY" Popupbuttonid = "Imagebutton2 ″ />
</ Div >
</ Div >
</ Form >
</ Body >
</ Html >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.