Placement of ASP. NET Ajax-timer controls

Source: Internet
Author: User

ASP. NET Ajax Provided Timer The control is a server control that regularly triggers full-page return. Updatepanel After the control, asynchronous return and partial update can be triggered regularly. Updatepanel Control content.

 

Please note that if you Timer Control placement Updatepanel Control Javascript The timer component is re-created only when each callback is completed. This means that the timer interval will not be calculated from the beginning until the webpage is returned. For example, assume that you Timer Control Interval Attribute 10000 Millisecond (that is 10 Seconds), but it takes 2 Second, the next Callback will occur after the previous callback is triggered 12 Seconds.

 

However, if Timer Control is located in Updatepanel When the callback is being processed, Javascript The timer component continues timing. For example, assume that you Timer Control Interval Attribute 10000 (That is 10 Seconds), and the return job took 2 It takes two seconds to complete. Even so, The next Callback will still happen after the previous callback is triggered 10 Seconds. That is to say, for users Updatepanel After the widget content is updated 8 Second, you will see Updatepanel The widget is updated again.

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.