MagicAjax - Easy as 1, 2, 3
A couple of days ago I discovered MagicAjax. MagicAjax simplifies creating Ajax enriched content. So, how do you use MagicAjax?
Click here
to download MagicAjax.
Step 1
Add a reference to the MagicAjax assembly to your project or a copy of it to the bin directory if you are not using an IDE. Also, add the following HTTP module reference to Web.config:
<
system.web
>
<
httpModules
>
<
add
name
=
"
MagicAjax
"
type
=
"
MagicAjax.MagicAjaxModule, MagicAjax
"
/>
httpModules
>
system.web
>
Step 2
Add the following to top of the web form you would like to use MagicAjax on:
<%
@
Register
TagPrefix
="ajax"
Namespace
="MagicAjax.UI.Controls"
Assembly
="MagicAjax"
%>
Step 3
Use the AjaxPanel control as a place holder for content that you would like to enable Ajax on.
<
ajax
:
AjaxPanel
ID
="AjaxPanel1"
runat
="server">
[Content here]
ajax
:
AjaxPanel
>
There you have it. It's as easy as 1, 2, 3.