The use of the calendar function Calendar in asp.net
- 2020-05-12 02:28:03
- OfStack
Today's presentation is about the ajax calendar control provided by Microsoft. This control USES the effects of ajax and sets the events and effects through the foreground js and style. It has rich functions and its own style. It is a necessary control for website design and mis development.
By convention, it's time to post the code:
< asp tutorial :textbox runat="server" id="txtcalendar" width="150" / >
< ajaxtoolkit:calendarextender runat="server" targetcontrolid="txtcalendar" css tutorial class="mycalendar" format=" yyyy-mm-dd "/ >
Since the style is set, let's post the code here as well, and just write a simple style:
When so run, you can discover, ya of incredibly is English, do not have our Chinese, this lets us sentiment how can! What to do? There are solutions, of course, and they are easy to implement. Without further suspense, you can just set enablescriptglobalization and enablescriptlocalization to true.
Let's move on to the properties. targetcontrolid is not the targetcontrolid, format is the way you set the display, and format is the same as the date format in c#. popupbuttonid is the click button control id that pops up.
There are many styles:
.ajax__calendar_container
.ajax__calendar_header
.ajax__calendar_prev
.ajax__calendar_title
web control standard properties
accesskey, attributes, backcolor, bordercolor, borderstyle, borderwidth,
cssclass, enabled, font, enabletheming, forecolor, height, isenabled,
For a complete description of skinid, style, tabindex, tooltip, width, please visit the standard properties of the web control.
Control standard www.3ppt.com quasi property
apprelativetemplatesourcedirectory, bindingcontainer, clientid, controls,
enabletheming, enableviewstate, id, namingcontainer, page, parent, site,
For a complete description of templatecontrol, templatesourcedirectory, uniqueid, visible, visit the standard properties of the control.
By convention, it's time to post the code:
< asp tutorial :textbox runat="server" id="txtcalendar" width="150" / >
< ajaxtoolkit:calendarextender runat="server" targetcontrolid="txtcalendar" css tutorial class="mycalendar" format=" yyyy-mm-dd "/ >
Since the style is set, let's post the code here as well, and just write a simple style:
.mycalendar .ajax__calendar_container{
border: 1px solid #646464;
background-color: maroon;
color: red;
}
When so run, you can discover, ya of incredibly is English, do not have our Chinese, this lets us sentiment how can! What to do? There are solutions, of course, and they are easy to implement. Without further suspense, you can just set enablescriptglobalization and enablescriptlocalization to true.
Let's move on to the properties. targetcontrolid is not the targetcontrolid, format is the way you set the display, and format is the same as the date format in c#. popupbuttonid is the click button control id that pops up.
There are many styles:
.ajax__calendar_container
.ajax__calendar_header
.ajax__calendar_prev
.ajax__calendar_title
web control standard properties
accesskey, attributes, backcolor, bordercolor, borderstyle, borderwidth,
cssclass, enabled, font, enabletheming, forecolor, height, isenabled,
For a complete description of skinid, style, tabindex, tooltip, width, please visit the standard properties of the web control.
Control standard www.3ppt.com quasi property
apprelativetemplatesourcedirectory, bindingcontainer, clientid, controls,
enabletheming, enableviewstate, id, namingcontainer, page, parent, site,
For a complete description of templatecontrol, templatesourcedirectory, uniqueid, visible, visit the standard properties of the control.