ASP. NET Time Control has many types of applications. It is a very practical control. The following describes an ASP. NET Time Control instance applied in the timing system.
This is a JS write time control, which is perfect for use in ASP. NET Time controls and is especially convenient. In addition, it supports firefox.
The name of the ASP. NET Time control should be My97DatePicker.
Usage:
- "Head1" Runat = "Server" >
- No title page
-
-
Easy to use
The above code is the ASP. NET Time control code for my timing statistics. For better use, the default value is usually added to the two text boxes when the page is executed for the first time:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsCallback)
- {
- txtDate1.Text = System.DateTime.Parse(Convert.ToString(System.DateTime.Now.AddDays(-1))).ToString("yyyy-MM-dd");
- txtDate2.Text = System.DateTime.Parse(Convert.ToString(System.DateTime.Now)).ToString("yyyy-MM-dd");
- }
-
- }
- Asp.net control development 1)-display control content
- Development of ASP. NET controls-how to trigger JavaScript scripts using UpdatePanel
- Custom Control DateTimePicker of ASP. NET source code
- Transformation from traditional ASP to ASP. NET: Understanding controls
- Panel control of ASP. NET