使用MOSS的服务器端控件报错
2008-09-17 22:43
260 查看
现象,自定义开发的页面,部署到Layout下。页面使用了MOSS的RichTextField服务器端控件 <SharePointWebControls:RichTextField ID="RichTextField1" ControlMode="New" FieldName="CommListTopicContent" runat="server">
</SharePointWebControls:RichTextField> 控件必须指定ControlMode和FieldName否则页面报错,没有指定这2个属性。 直接在IE打部署后的URL,http://satyambrucelee:8088/_layouts/WebForm1.aspx,报如下错误。 对象的当前状态使该操作无效。 在 Microsoft.SharePoint.SPFolder.get_ContentTypeOrder()
在 Microsoft.SharePoint.SPContext.get_ContentTypes()
在 Microsoft.SharePoint.SPContext.get_ContentType()
在 Microsoft.SharePoint.SPContext.get_Fields()
在 Microsoft.SharePoint.WebControls.FormComponent.get_Fields()
在 Microsoft.SharePoint.WebControls.FieldMetadata.get_Field()
在 Microsoft.SharePoint.Publishing.WebControls.RichHtmlField.OnInit(EventArgs e)
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 原因:
因为是MOSS包装的服务器断控件,控件后台做了一些操作,所以页面URL后必须包含ListId的值,如果要做其他处理还需要包含其它参数
?List=必须
&RootFolder=
&ContentTypeId=
&Source=
</SharePointWebControls:RichTextField> 控件必须指定ControlMode和FieldName否则页面报错,没有指定这2个属性。 直接在IE打部署后的URL,http://satyambrucelee:8088/_layouts/WebForm1.aspx,报如下错误。 对象的当前状态使该操作无效。 在 Microsoft.SharePoint.SPFolder.get_ContentTypeOrder()
在 Microsoft.SharePoint.SPContext.get_ContentTypes()
在 Microsoft.SharePoint.SPContext.get_ContentType()
在 Microsoft.SharePoint.SPContext.get_Fields()
在 Microsoft.SharePoint.WebControls.FormComponent.get_Fields()
在 Microsoft.SharePoint.WebControls.FieldMetadata.get_Field()
在 Microsoft.SharePoint.Publishing.WebControls.RichHtmlField.OnInit(EventArgs e)
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 原因:
因为是MOSS包装的服务器断控件,控件后台做了一些操作,所以页面URL后必须包含ListId的值,如果要做其他处理还需要包含其它参数
?List=必须
&RootFolder=
&ContentTypeId=
&Source=
相关文章推荐
- 获取MOSS页面中控件使用的样式
- 控件的隐藏和显示的,在客户端控件和服务器端控件的使用
- html 控件作为服务器端控件使用的注意事项
- 使用LiveSound在服务器端播放声音文件的控件LiveControls for ASP.NET
- asp.net学习笔记·html服务器端控件的使用
- 服务器端控件使用客户端脚本
- 使用服务器端数据验证控件的综合实例
- 服务器端控件使用客户端脚本
- 服务器端控件使用JQuery
- asp.net 服务器端控件使用服务器端变量
- 获取MOSS页面中控件使用的样式
- Asp.net服务器端控件CheckBoxList的使用心得
- 服务器端控件怎样使用一键快捷方式
- 在MOSS中使用无刷新的日历日程控件
- MOSS 2007 入门(6) : 使用一个Code-behind的用户控件作为WebPart
- ModalPopupExtender控件主要有两种使用方式:客户端使用方式和服务器端使用方式
- Silverlight查询大数据出错?使用服务器端分页控件DomainDataSource
- 在mvc3中使用Telerik的upload控件上传Zip压缩文件,服务器端解压逐个上传到数据库,使用Ionic.Zip
- showModalDialog使用服务器端控件不弹出网页
- MOSS中使用无刷新的日历日程控件破解版