Rank: Newbie Groups: Member
Joined: 2/27/2008 Posts: 1
|
Hi,
I am relatively new to ASP.net C# and I cant get the slidemenu to save state accross pages.
I read on a previous post about this and, did everything that was recommended, I set save state accross pages to true and the StateCookieName to "menustate" but still no luck.
Does anyone have a code snippet or some advice on the subject?
Thanks Dre
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
No code is needed to use this features. Try create a simple test project with the following steps:
1. Create a master page; 2. Place a slide menu in the master page, then use the slide menu builder to create a few menu items; 3. Create a few content page, them set each slide menu item's NavigateUrl to point to the content page. Note you should not set a NavigateUrl for top level items. Top level items are used to expand/collapse panes, not for navigation; 4. Set the menu's SaveStateAcrossPage to true. Run the app and see if it works.
If you do need to use top level items to navigate, considering setting SaveStateAcrossPage to false but AutoSelectSource to "NavigateUrl" and AutoSelectTarget to "Item". That will tell the slide menu to automatically select (expand) the item whose NavigateUrl matches the current page Url.
Thanks
|