You are on page 1of 4

Ajax server side controls

1. Creating Ajax enabled web forms


It is a platform independent technology that works with the web
applications running inside the browsers.
It is an ECMA script complaint technology
ECMA is the client side scripting language like java scripting
We can add Ajax to any web app

Intro to ASP.NET Ajax:

1. Microsoft Ajax library


It is the set of java script files that makes programming on
client side and it provides an object oriented model to Ajax
scripting language
It includes namespaces, event handling, data types etc.
And it also supports the error handling debugging etc.
It combines java script features and dhtml.
2. ASP.NET Ajax server controls
These server controls are embedded in the web page and
they do the partial page updates and communicating to
server that process to indicate progress and periodically
update the page portions
3. Ajax control tool kit
It show off the power of the Ajax these controls can be used
in our web page to enable so many client side features
typically reserved for applications running on the desk top
like masked edit boxes, slider controls, filtered test boxes,
modal popups

4. Client side web service support


ASP.Net provides support for calling web services
asynchronously from the client side using java script object
notation (json) serialization and xml

Uses and Benefits of ASP.NET Ajax:

1. Partial page updates


This feature allows you to define an area of the page that
should post back and update by itself and the rest of the
page gets refreshed when the request finishes
2. Client side processing
This interactivity provides immediate feedback and
responsiveness to the users with this we can enable things
like collapsible areas of a page tabs on a page and sorting
data
3. Desktop like UI
We can provide things like modal dialog boxes progress
indicators, masked edit boxes, tool tips
4. Progress indication
5. Improved performance and higher scale
6. Web service calls from the client
7. Cross browser cross platform support

AJAX Server controls:


They provide two types of features 1. Partial page updates and 2.
Client to server progress updates
Each and every control inherits from system.web.ui.control class

1. Script manager and script manager proxy controls


ASP.NET Ajax requires one instance of the script manager
control it is responsible for the Microsoft Ajax library down to
the client when page is requested and it also manages the
partial page updates progress indicators and more
<asp: ScriptManager ID=ScriptMangaer1 runat=server>
</asp: ScriptManager>
It enables partial rending property to true that means the
page supports the partial page updates
We can also write custom scripts by this
2. Using Ajax with master pages and user controls
When we use the Ajax inside the user control we write
directly in the master page this will create a problem
because there should be one script manager for the page
having one inside the control and one on the page create
problem to overcome his issue we use script manager proxy
control which is used for the child pages
3. The Update panel control
It allows us to define the area on the page that where it is
post back to the server

You might also like