使用MagicAjax 实现无刷新Webparts
来源:互联网 发布:图像单应性矩阵 编辑:程序博客网 时间:2024/05/21 17:06
介绍MagicAjax
Web.config的配置如下:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="magicAjax" type="MagicAjax.Configuration.MagicAjaxSectionHandler, MagicAjax"/>
</configSections>
<magicAjax tracing="false">
<pageStore/>
</magicAjax>
<system.web>
<authentication mode="Forms"/>
<pages>
<controls>
<add namespace="MagicAjax.UI.Controls" assembly="MagicAjax" tagPrefix="ajax"/>
</controls>
</pages>
<webParts>
<personalization defaultProvider="Nsquared2SqlPersonalizationProvider">
<authorization>
<allow users="*" verbs="enterSharedScope"/>
</authorization>
<providers>
<add name="Nsquared2SqlPersonalizationProvider" type="Nsquared2.Web.UI.WebControls.WebParts.SqlPersonalizationProvider, Nsquared2.Web" connectionStringName="PortalConnectionString" varyByParams="ParentDPID,DPID,UserId"></add>
</providers>
</personalization>
</webParts> <httpModules>
<add name="MagicAjaxModule" type="MagicAjax.MagicAjaxModule, MagicAjax"/>
</httpModules>
<compilation debug="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
</system.web>
</configuration>
使用WebPart的页面如下:
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
<ajax:AjaxPanel ID="AjaxPanel1" runat="server" Height="305px" Width="452px">
<wmz:WebPartDisplayModesMenu ID="WebPartDisplayModesMenu1" runat="server" />
<table style="width: 505px">
<tr>
<td>
<asp:WebPartZone ID="WebPartZone1" runat="server">
<ZoneTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ZoneTemplate>
</asp:WebPartZone>
</td>
<td style="width: 280px">
<asp:WebPartZone ID="WebPartZone2" runat="server">
<ZoneTemplate>
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</ZoneTemplate>
</asp:WebPartZone>
</td>
</tr>
</table>
</ajax:AjaxPanel>
把两个WebPartZone放在 MagicAjax's AjaxPanel.控件中,可以支持所有的WebPart的所有操作无刷新,类似于Google的Loading……效果。具体的例子参看MagicAjax's提供的例子。例子中包含了一个使用WebPart的例子。
参看在线演示http://demo2.magicajax.net/examples/WebParts.aspx
- 使用MagicAjax 实现无刷新Webparts
- 使用MagicAjax 实现无刷新Webparts
- 利用magicAjax实现webParts无刷新拖动
- 用magicajax实现无刷新分页
- 用magicajax实现无刷新分页
- 用magicajax实现无刷新分页
- 使用xmlhttp实现无刷新三级联动
- 使用AjaxPro实现无刷新分页
- 使用CallBack实现页面无刷新技术
- 使用javascript实现无刷新数据校验
- 使用ICallbackEventHandler实现无刷新回调
- 使用Ajax实现无刷新上传文件
- 使用UpdatePanel实现页面无刷新
- 使用iframe实现无刷新上传文件
- 使用plupload实现无刷新上传图片
- 使用iframe实现无刷新表单提交
- 使用iframe实现无刷新提交表单
- 使用Ajax实现页面无刷新
- 常用软件保护技术
- MindManager: Draw your own MindMap!
- 2006关注IT技术
- ASP.NET 2.0加密Web.config 配置文件
- 不要因忙碌而失去梦想!
- 使用MagicAjax 实现无刷新Webparts
- iBATIS.NET DataMapper V1.3 Beta and DataAccess V1.7 Beta发布了
- 使用新类型Nullable处理数据库表中null字段
- 开源软件的最近几个更新值得注意
- 深圳dotnet俱乐部2006年1月7日WebPart交流活动
- ReactOS 系统引导原理
- 发布一个定制的webpart:RssReader
- 弹出式模态窗体选择文本控件
- 如何同一时间一个帐号只有一个用户使用