Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Leftmenu.ascx mod to prevent stacking on post backLeftmenu.ascx mod to prevent stacking on post back
Previous
 
Next
New Post
4/21/2010 5:33 PM
 

I ran into a problem with the Leftmenu control caused all the menu items to be added repeatedly after each postback from a page control. I bulldoged the solution by modifing the leftmenu.ascx page with the folowing:
 

site\Website\admin\Skins\LeftMenu.ascx.vb

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
   Dim objTabController As New TabController
   Dim i, iItemIndex, iRootGroupId As Integer
   Dim temp As qElement
   Dim StartingItemId As Integer
            'This line added to prevent menu stacking
            If IsPostBack = True Then Exit Sub
            'end of mod

I'm sure this is not the way to do this, as it maybe handled in CSS, but I found no strait forward CSS builder documentation on the this control. Would anyone know what negetive effects this will have if I leave it in place and/or a better solution for fixing this problem?

 
New Post
6/2/2010 10:47 AM
 
Glad to find this post (Thanks a million). It took care of a nightmare for me.

As a side note, there is a setting called persiststateincookie as shown below that has some effect on the stacking issue. Setting it "true" fixes the stacking issue, but then it causes another issue of have the same subnav showing all the time regardless of the root menu item (i.e. not switching the submenus based on root)

<dnn:leftmenu runat="server"
id="dnnLEFTMENU"
persiststateincookie="false"
width="165px" maxlevel="4" >
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Leftmenu.ascx mod to prevent stacking on post backLeftmenu.ascx mod to prevent stacking on post back


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out