Showing posts with label Learn Ajax. Show all posts
Showing posts with label Learn Ajax. Show all posts

Tuesday, 5 March 2013

Study Material for Ajax


For Asp.net Training  Click Here

Written By:-Isha Malhotra
Email:-malhotra.isha3388@gmail.com

Basic of AJAX

Ajax is a platform independent technology. AJAX stands for Asynchronous JAvascript and Xml. Asynchronous refers to the events that are happening in the background Independently from the main application flow.
With the help of Ajax we can create an area in our web form Which post back and update without refreshing the whole page. It is called Partial page updating which increases the performance.
Ajax Controls
1.       ScriptManager
2.       ScriptManagerProxy
3.       Update Panel
4.       Timer Control
5.       Update Progress

Script Manager
Script manager is used to control the processing of Ajax. The major responsibility of script manager is for downloading Microsoft Ajax Library down to the browser (client).
Script manager’s EnablePartialRendering property must be set True which is its default value which is necessary for the script manager to manage Partial updating.
Update Panel
Update panal control is just like a container for other control. It defines an area in your page which will be independently partially post back without refreshing the whole page. A single page can have multiple update panel.
Example
In the following example we add one script manager and update panel at our page. In update panel we take one dropdown list and filled it with some countries and there is a lable in update panel too. We create event dropdown SelectedIndexChanged. In this event we take the dropdown selected item and show it in the lable. Check the following code:-