方便的webpart开发及SmartPart with AJAX无法使用问题

来源:互联网 发布:家里怎么装网络电话机 编辑:程序博客网 时间:2024/05/22 01:36

 在MOSS开发中Webpart开发是个令人头疼的问题,不过自有牛人在.SmartPart和QuickPart是两个牛人开发的Webpart,它们能将我们开发的用户控件直接呈现为webpart.具体的使用方式非常简单,可在下载页找到指导.

SmartPart下载地址: http://www.codeplex./smartpart

QuickPart下载地址: http://www.codeplex./quickpart

本人开发中使用的是SmartPart,安装完成后会产生两个WebPart,分别是

SmartPart和SmartPart with AJAX,后者支持用MS AJAX开发的用户控件.

很多人在使用的时候会出现无法载入SmartPart with AJAX 的问题,只需在SiteCollection 的web.config中加入如下节点即可:

<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35" culture="neutral" />
<bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35" culture="neutral" />
<bindingRedirect oldVersion="2.0.0.0" newVersion="3.5.0.0" />
</dependentAssembly>