承接MOSS各种工作流开发 联系人:王先生.电话:18618405729QQ:252385878 QQ群:41696750 MSN:wanghao-3@hotmail.com

导航

SharePoint 在Default 下面添加服务端代码

操作三部曲

GO TO  配置文件

1.<pages enableSessionState="false"--修改为true enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">

2.在<PageParserPaths></PageParserPaths>中增加
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />

3.在<httpModules>< tpModules>中增加
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

 

这样我们就可以在default里面添加服务端代码了

posted on 2010-08-25 22:25  A A  阅读(504)  评论(0编辑  收藏  举报