积极答复者
自定义表单开发问题

问题
答案
-
Hi,wangyk
如果你在NewForm.aspx或者EditForm.aspx页中编写C#代码的话,需要先修改相应Web Application的web.config文件的<PageParserPaths>节点,将该节点修改为下面这样:
<PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Auto" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths>
然后使用SharePoint Designer打开你要修改的NewForm.aspx,这时就可以在你的页面中编写C#代码了,例如下面这样
<script language="c#" type="text/c#" runat="server">
protected override void OnLoad(EventArgs e)
{
}
</script>
第二个问题,关于sharepoint solution generator可以参考下面这篇博客中的内容:- 已标记为答案 Lambert Qin [秦磊]Moderator 2011年4月29日 5:28
全部回复
-
Hi,wangyk
如果你在NewForm.aspx或者EditForm.aspx页中编写C#代码的话,需要先修改相应Web Application的web.config文件的<PageParserPaths>节点,将该节点修改为下面这样:
<PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Auto" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths>
然后使用SharePoint Designer打开你要修改的NewForm.aspx,这时就可以在你的页面中编写C#代码了,例如下面这样
<script language="c#" type="text/c#" runat="server">
protected override void OnLoad(EventArgs e)
{
}
</script>
第二个问题,关于sharepoint solution generator可以参考下面这篇博客中的内容:- 已标记为答案 Lambert Qin [秦磊]Moderator 2011年4月29日 5:28
-