SharePoint Custom Field Type与RenderTemplate ID与ascx页面无关联
2011-05-10 18:40
405 查看
这两天在开发Field Type,按照MSDN的DEMO做下来一切顺利,接下来仍到自己做的时候就出现问题了,EDIT页面的时候一个控件也没出来,一开始以为是没找到ascx页面,但是看了看DEMO,上面也没有和ascx关联啊,那怎么能读到Template呢?
经过反复测试,最终才找出原因,原来是控件加载的时候出现了错误导致没能正常加载,但是没有抛出任何Error,在寻找错误的过程中,反复看了MSDN以及用Reflector看了源代码才了解原来只和<SharePoint:RenderingTemplate ID="xxx" runat="server">
有关,这个ID是在TEMPLATE/CONTROLTEMPLATES是唯一的,而和ascx无关。
经过反复测试,最终才找出原因,原来是控件加载的时候出现了错误导致没能正常加载,但是没有抛出任何Error,在寻找错误的过程中,反复看了MSDN以及用Reflector看了源代码才了解原来只和<SharePoint:RenderingTemplate ID="xxx" runat="server">
有关,这个ID是在TEMPLATE/CONTROLTEMPLATES是唯一的,而和ascx无关。
相关文章推荐
- About sharepoint custom FieldType bug
- Sharepoint Custom Control Creating custom Multi Choice field type
- Developing custom field type for SharePoint 201
- add a custom action to a SharePoint list actions menu for a specific list or content type
- SharePoint List的List Template ID明细表
- sharepoint 2010 页面添加logo banner方法 custom banner for sharepoint 2010 master page
- Sharepoint ListType Id
- Sharepoint ListTemplateId
- sharepoint 2010 页面添加footer方法 custom footer for sharepoint 2010 master page
- SharePoint ListTemplateType enumeration
- 转:Defining Custom Columns in SharePoint – Field Types and Options
- sharepoint ECMA using a custom contentType to creating a list in SubSite
- sharepoint 2010 页面添加footer方法 custom footer for sharepoint 2010 master page
- SharePoint Development - Custom Field using Visual Studio 2010 based SharePoint 2010
- Sharepoint FieldType的显示问题
- Sharepoint ListTemplateId
- SharePoint: Creating a custom field
- Building Custom Field Types in Windows SharePoint Services 3.0
- Defining Custom Columns in SharePoint – Field Types and Options