使用MagicAjax 实现无刷新Webparts
2006-08-14 17:24
274 查看
介绍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
http://www.cnblogs.com/shanyou/archive/2006/01/19/320192.html
http://www.magicajax.net/
http://demo2.magicajax.net/examples/WebParts.aspx
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
http://www.cnblogs.com/shanyou/archive/2006/01/19/320192.html
http://www.magicajax.net/
http://demo2.magicajax.net/examples/WebParts.aspx
相关文章推荐
- 使用MagicAjax 实现无刷新Webparts
- 使用MagicAjax 实现无刷新Webparts
- 使用MagicAjax 实现无刷新Webparts
- 利用magicAjax实现webParts无刷新拖动
- 使用webpack构建本地服务器,实现自动刷新,并直接在手机上访问
- iOS图片验证码使用SDWeb实现的加载如何实现清理缓存点击刷新
- asp.net下使用jquery 的ajax+WebService+json 实现无刷新取后台值的实现代码
- asp.net :使用jquery 的ajax +WebService+json 实现无刷新去后台值
- 用web用户控件的方式添加到webpart,使用ajax实现无刷新总结
- asp.net :使用jquery 的ajax +WebService+json 实现无刷新去后台值
- 利用majicAjax实现webParts无刷新拖动
- Jquery结合Ajax和Web服务使用三层架构实现无刷新分页
- 代码下行Jquery结合Ajax和Web服务使用三层架构实现无刷新分页
- asp.net下使用jquery 的ajax+WebService+json 实现无刷新取后台值的实现代码
- ASP.NET 使用WebServices+Ajax实现无刷新验证用户是否已注册
- 使用Microsoft.Web.UI.WebControls TreeView实现无刷新功能出现新问题
- 使用CSS中的meta实现web定时刷新或跳转的方法
- Jquery结合Ajax和Web服务使用三层架构实现无刷新分页
- asp.net :使用jquery 的ajax +WebService+json 实现无刷新去后台值
- .Net Core 下使用ZKWeb.System.Drawing实现验证码功能(图形验证码)