Ajax-based date Control

Source: Internet
Author: User

A Jax I have not learned in detail, but I can see on the Internet that the implementation based on a certain technology can be called A Jax . In my understanding, the date control is based on A Jax . The biggest feature of this date control is that it is based on XMLHTTP But also supports All features of the system. Web. UI. webcontrols. Calendar control, date selection event and date binding event. When processing pages based on XMLHTTP requests, unnecessary functions such as pageload events are often handled too much; the control does not do this. It blocks processing during the oninit process of the control.





You can useDayitemcreating event, changing the display of the current date and adding attribute display.

Private VoidCalendar2_dayitemcreating (ObjectSource, hfsoft. Web. eventdayitemargs E)

{

If(E. Item. Date. month = 7 & E. Item. Date. Day = 6)

{

E. Item. Text + ="<Br> Birthday";

E. Item. Attributes. Add ("Bgcolor","# Ff9966");

}

}

Private VoidCalendar1_dayitemcreating (ObjectSource, hfsoft. Web. eventdayitemargs E)

{

If(E. Item. Date. Day = 28)

{

E. Item. Text + ="<Br> pay rent";

E. Item. Attributes. Add ("Bgcolor","# Ff9966");

}

}

For more information, see examples and controls.Code.

download the example source code download

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.