MagicAjax concept


If you want to implement a quick and easy AJAX solution to your ASP.net 2.0 web application, I highly recommend MagicAjax.
This is a standard ASP web control that can be used just like the asp:panel control. The best thing about this panel, though, is that everything inside the MagicAjax panel automatically uses AJAX! Gridviews, DropDownLists, Calendars, ListBox, whatever, it all works without page refreshes. Quick. Easy. Effective.
1.) Download the latest version of MagicAjax
2.) Create the folder
C:\Program Files\Microsoft Visual Studio 8\magicajax
and copy the contents of the download to this folder.
3.) Right-click on the toolbox in Visual Studio and select “choose items…”
4.) In the .NET Framework Components tab select “Browse” and select this file
C:\Program Files\Microsoft Visual Studio 8\magicajax\bin\MagicAjax.dll
from the folder you just created. Press OK.
Now you have MagicAjax in your Toolbox. When you want to add the control to a web page:
1.) Modify your web.config file to contain:
<httpModules>
<add type="MagicAjax.MagicAjaxModule, MagicAjax" name="MagicAjax" />
</httpModules>
2.) Add a Register tag to the top of the page you want the control on (or let MagicAjax add it for you if you drag-and-drop the control)
<%@ Register TagPrefix="ajax" Namespace="MagicAjax.UI.Controls" Assembly="MagicAjax" %>
3.) Add the control to your code using:
<ajax:ajaxpanel id="MyAjaxPanel" runat="server">
4.) Add whatever controls you want inside this panel, and BAM! AJAX!
Of course there are plenty configuration options for this control. For some good further reading, visithttp://www.magicajax.net/site/docs/Configuration.html