2009-07-14 36 views
0

我使用codeplex的css友好适配器与sharepoint。css友好适配器头疼

这似乎是工作,尽管当我去“管理内容和结构”页的页面会返回一个错误:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child) 
    at CSSFriendly.TreeViewAdapter.SaveAdapterViewState() 
    at System.Web.UI.Control.SaveViewStateRecursive() 
    at System.Web.UI.Control.SaveViewStateRecursive() 
    at System.Web.UI.Control.SaveViewStateRecursive() 
    at System.Web.UI.Control.SaveViewStateRecursive() 
    at System.Web.UI.Page.SaveAllState() 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

就如何解决这一问题的任何想法?

回答

2

我已经尝试过,并失败惨败。适配器不能很好地使用SharePoint使用的一些树视图。

见一个演练笔者在这里评论:

article

他的评论:

As the person who wrote the walk through you linked to on The Mossman's blog I think its important to post some followup lessons I've learned -- mainly using the CSS Friendly Adapters will cause problems with some of the pages (Manage Content and Structure is one that comes to mind). My preferred method these days is to use the Telerik navigation controls. Its relatively easy to style, cheap, and easy to implement. SharePoint MVP Andrew Connell wrote a great white paper on using the Telerik controls and posted about it on his blog.

0

我用的是控制适配器,但只有当我真正需要它们。我应该认为“管理内容和结构”页面不需要它们?