Classic ASP. NET Time Control Application Instance

Source: Internet
Author: User

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:

 
 
  1. "Head1" Runat = "Server" >
  2. No title page
  3.  
  4.  

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:

 
 
  1. protected void Page_Load(object sender, EventArgs e)  
  2.     {  
  3.          if (!IsCallback)  
  4.          {  
  5.             txtDate1.Text = System.DateTime.Parse(Convert.ToString(System.DateTime.Now.AddDays(-1))).ToString("yyyy-MM-dd");  
  6.                  txtDate2.Text = System.DateTime.Parse(Convert.ToString(System.DateTime.Now)).ToString("yyyy-MM-dd");  
  7.          }  
  8.    
  9.      } 
  1. Asp.net control development 1)-display control content
  2. Development of ASP. NET controls-how to trigger JavaScript scripts using UpdatePanel
  3. Custom Control DateTimePicker of ASP. NET source code
  4. Transformation from traditional ASP to ASP. NET: Understanding controls
  5. Panel control of ASP. NET

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.