MagicAjax使用简介
MagicAjax使用简介
MagicAjax 的下载地址: http://www.magicajax.net/
当前的最新版本是 0.3.0,针对.NET 1.1 和 .NET 2.0 有两个不同版本下载。
1、在当前的WEB项目中添加 MagicAjax.dll 引用
这个文件在下载的zip压缩的 bin 目录里。
2、在WEB项目的配置文件 web.config 中增加这样一句
<httpModules>
<add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />
</httpModules>
<add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />
</httpModules>
把它放在 <system.web> ..... </system.web> 里面
3、在aspx页面文件中最前面添加
<%@ Register TagPrefix="ajax" Namespace="MagicAjax.UI.Controls" Assembly="MagicAjax" %>
4、将aspx页面中想实现无页面刷新更新数据的控件,放在这一个AjaxPanel容器中,使用上和asp.net自带的Panel控件没什么差别。
<ajax:AjaxPanel id="AjaxPanel1" runat="server">
</ajax:AjaxPanel>
</ajax:AjaxPanel>
举例:
-------------页面文件---------------




















-------------代码文件-------------------



































-----------------------------
posted on 2006-03-28 15:01 CrazyWill 阅读(1352) 评论(1) 编辑 收藏 举报