0
我在我的SharePoint站點(Sharepoint Foundation 2010)的母版頁上使用ASPxNavBar。我已經succefully集成了控制,它能夠正常不過我是有一個導航欄的狀態(這團體是開放的)不被持久化的問題)下面是一些代碼ASPxNavBar狀態不被持久
<Sharepoint:SPNavigationManager
id="QuickLaunchNavigationManager"
runat="server"
QuickLaunchControlId="ASPxNavBar1"
ContainedControl="QuickLaunch"
EnableViewState="false">
<dx:ASPxNavBar ID="ASPxNavBar1"
AutoCollapse="true"
Paddings-PaddingLeft="0"
Paddings-PaddingRight="0"
Paddings-PaddingTop="0"
runat="server"
GroupSpacing="0"
AllowSelectItem="true"
BackColor="Transparent"
ForeColor="White"
Width="220px"
ItemLinkMode="TextOnly"
EnableAnimation="true"
ShowExpandButtons="true"
AllowExpanding="true"
ItemStyle-SelectedStyle-Font-Italic="true"
ItemStyle-SelectedStyle-Font-Bold="true"
ExpandImage-Url="/_layouts/images/FamilyCarePRL/Buttons/Expand.png"
CollapseImage-Url="/_layouts/images/FamilyCarePRL/Buttons/Contract.png"
SaveStateToCookies="True"
>
<GroupHeaderStyle Height="40" BackColor="Transparent">
<BackgroundImage ImageUrl="/_layouts/images/FamilyCarePRL/Buttons/NavBarButtonGradient.png"
Repeat="RepeatX" />
<Border BorderColor="Black"></Border>
</GroupHeaderStyle>
<Groups>
<dx:NavBarGroup Name="AboutUs" Text="About Us">
<Items>
<dx:NavBarItem Name="Vision" Text="Our Vision">
<Template>
<asp:ImageButton ID="ImageButton1" ImageUrl="/_layouts/images/FamilyCarePRL/Buttons/Vision.png"
PostBackUrl="<% $SPUrl:~SiteCollection/SitePages/Vision.aspx%>" runat="server" />
</Template>
</dx:NavBarItem>
.
.
的問題是當我點擊圖像按鈕時,它會將您帶到網站頁面,但NavBar的狀態不會持久。我已將SaveStateToCookies設置爲true,但似乎不起作用。任何建議,非常感謝