Articles of level

Intermediate

Timer controls allow you to do postbacks at certain intervals. If used together with UpdatePanels, which is the most common approach, it allows for timed partial updates of your page, but it can be used for posting back the entire page as well. In this chapter we will focus on using timers with UpdatePanels, so if you have not already read the chapter on UpdatePanels, please do so now. 
Here is a small example of using the Timer control. It simply updates a timestamp every 5 seconds.

No it is not necessary. AJAX gives interaction designers more flexibility. However, the more power we have, the more caution we must use in exercising it. We must be careful to use AJAX to enhance the user experience of our applications, not degrade it. 

Reading Xml with JQuery is an easier approach if we have interest on the usage of client-side script as this script does not post back the whole page to the server and hence, speed the network performance.

HTTP errors like 404, 503 are sometimes tedious to handle using AJAX. There is a simple trick to solve this problem. First let us see simple AJAX handler function that we use to get response XML/text through AJAX.

GET Request method using jQuery
Load a remote page using HTTP GET request method. This is an easy way to send a simple GET request to a server. It allows a single callback function to be specified that will be executed when the request is complete (and only if the response has a successful response code).

Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*