2009-07-14 69 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

我用的是控制適配器,但只有當我真正需要它們。我應該認爲「管理內容和結構」頁面不需要它們?