How to Use the ajaxcontroltoolkit calendarextender (calendar extension control)

Source: Internet
Author: User

Example: you only need to set the targetcontrolid of the calendarextender to the ID of the textbox whose date is to be displayed. The readonly attribute of the Textbox Control is set to false.
Main Code : Copy code The Code is as follows: <asp: scriptmanager id = "scriptmanager1" runat = "server" enablescriptglobalization = "true" enablescriptlocalization = "true">
</ASP: scriptmanager>
<Ajaxtoolkit: calendarextender format = "yyyy-mm-dd" id = "calendarextender2"
Runat = "server" targetcontrolid = "textbox1">
</Ajaxtoolkit: calendarextender>
<Asp: textbox id = "textbox1" runat = "server"> </ASP: textbox>

The format attribute of calendarextender sets the display format of the time.
In addition, the popupbuttonid attribute sets the ID of a button control. Click this control to expand the calendarextender.
As follows:Copy codeThe Code is as follows: <asp: scriptmanager id = "scriptmanager1" runat = "server" enablescriptglobalization = "true" enablescriptlocalization = "true">
</ASP: scriptmanager>
<C0: calendarextender id = "calendarextender1" runat = "server" targetcontrolid = "textbox1" popupbuttonid = "imagebutton1">
</PC3: calendarextender>
<Asp: textbox id = "textbox1" runat = "server"> </ASP: textbox> <asp: imagebutton id = "imagebutton1"
Runat = "server"/>

When the enablescriptglobalization attribute and enablescriptlocalization attribute of scriptmanager are set to true, the control is in Chinese.
The attributes of the specific scriptmanager are still being learned.

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.