Tech Manthan

May 29, 2007

AJAX Implemetation

Filed under: .Net Manthan — sandipdavda @ 3:07 pm

AJAX(ASP.Net) Implemetation

By Priyank Rach

In previous article on Ajax http://techmanthan.wordpress.com/2007/05/07/ajax/, Himanshu had discussed about the Ajax web application model, how it differs from classic web application model, Advantages & disadvantages of Ajax. In this article we will see how to start with Ajax in ASP.Net.

First you will have to download ASP.Net Ajax Extension. It can be free download from web. Now go for its installation. After the successful installation of it, you will able to see a new template in wizard of creating a new web site. It would be named as “ASP.Net Ajax Enabled Website”.

template2.jpg

In this web site you will be able to see “Ajax Extensions” in toolbar. It has the controls like script manager, Update panel which gives Ajax benefits to your web application.

toolbar2.jpg

As you will be able to see there form is default loaded with script manager. It loads all necessary scripts for Ajax controls. Now you can drag the Update Panel. Update panel is the control which allows asynchronous post back to your application. Means you can refresh the controls inside the panel without refreshing the whole page.

Now as this indicate, controls within the update panel can refresh the portion covered by the panel. Similarly you can refresh the panel by control which is outside of that panel also. These can be gained using “Triggers”. In trigger also you can have the option to partially refresh the page or our convential refresh (whole page). Trigger can be fired on various events like Button click, dropdown selected index change or radio button state change etc.

This was related to creating a new Ajax enabled web site, but if you already have a web application and if you want to have Ajax features in it then you may need to create a dummy Ajax enabled application through template and copy the web.config file to your web application’s web.config file. You may need to copy only the Ajax related portion from your web.config file.

Let us know how useful you find this article…

4 Comments »

  1. Good going Priyank..

    Comment by KAUSHAL.. :-) — May 30, 2007 @ 8:33 am | Reply

  2. [...] For implementation detail you all can check this link http://techmanthan.wordpress.com/2007/05/29/ajax-implemetation/   [...]

    Pingback by AJAX « Tech Manthan — May 30, 2007 @ 1:39 pm | Reply

  3. Hi,

    It seems ur understanding about AJAX is language specifuc, which is not true. AJAX is programming methodology which can be used with JavaScript for server side components(developed in J2EE or .NET).

    Regards,
    Shanker Bejjanki

    Comment by Shanker Bejjanki — June 28, 2007 @ 5:06 pm | Reply

  4. Hi,

    The objective of my artice is to get started with AJAX. For getting started any body must have to use any programming language.
    I used the dot net. thats it.

    It looks that you have the habbit to comment before reading the complete article. Here also an link is given which redirects the user to basis of AJAX. Which is explained independent of any programming language.

    Comment by priyank — June 29, 2007 @ 10:49 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.