2009-07-14 3 views
0

나는 sharepoint와 함께 codeplex의 CSS 친화적 인 어댑터를 사용하고 있습니다. 이 문제를 해결하는 방법에 대한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

내가 컨트롤 어댑터를 사용하지만 난 정말 그들을 필요로하는 곳에 단지 .. 내가해야 "콘텐츠 및 구조 관리"페이지에서 필요하지 않다고 생각하십니까?