What CSS Rules Do The Menu Server Control Implement To Renders As A Horizontal Menu?
Oct 2, 2010
For the ASP.NET Menu Server Control whose RenderMode is set to "List", there is an "Orientation" property which decides whether the menu would render as a horizontal or a vertical menu. I have compared the two HTML source code and was unable to find out which part of the HTML/CSS code set the orientation of the menu(unordered list).
1) I have a menu control which is using a SiteMapDataSource. This is bound to a .sitemap file. I have the orientation property set to horizontal, but for some strange reason it still displays vertical. I can't for the life of me figure out why it's doing this. Am I doing something wrong here?
2) Is there a way to not display the root (Home) directory on my menu control? I only want to show Customer Support, Technician Support, Administration, and Site Map on the control.
Using an ASP.NET 3.5 menu control set to horizontal, is there a way to specify that only a certain node of the menu displays? For example, let's say I have a vertical menu on the left side of the master page that is tied to a sitemap and displays these nodes. The submenus would be dynamic and only display when the root node is hovered.
Main Page Second Page Sub Menu 1 Page 1 Page 2 Page 3 Sub Menu 2 Page 1 Page 2 Page 3
A certain (powerful) group of my users will always be going straight to the pages in Sub Menu 1 and pretty much never touching the other pages. They would like a sub-master page that is based on the parent master page so that the primary vertical menu and the sitemappath are all still there but the sub-master page will contain a horizontal menu control that only displays the the Sub Menu 1 node, like this:
Sub Menu 1 Page 1 Page 2 Page 3
Is there a way to set up the menu control to start displaying at a certain node level so the parent nodes and sibling nodes aren't displayed or would this require maintaining a separate sitemap file? I hope this makes sense.
I've built a website with a Horizontal Menubar at the the top of the site, it works fine the only problem is now that i have added more items to the website map it has now grown wider than the site, so what i would like it to do is when it gets to a certain width drop down and start adding the node links underneath. i tried setting the width property of the <asp:menu> but this did not seem to do anything at all. I could obviously add a second menubar linking to another sitemap but i would like to be as dynamic as posssible. Plus the menu is baseed around the role structure so some users may only see 5 items where admins, supervisors etc may see around 30 level 1 menu items with multiple subitems. so in short how to i make the menu wrap round to the next line when a certain length is reached
My menu control is in horizotal style and i want to show it's dynamic item also in horizontal style too, by default they are vertical. Plus the arrow(Static pop-out image) to be shown vertical rather horizotal which is by default. How to do that ?
The menu control when used on the newly released VS2010 with ASP.Net version 4.0 renders vertically briefly, then renders horizontally. This causes a 1/2 second annoying flash of the menu in vertical form before it disappears and renders horizontally as intended. If you choose to render the menu as a table this problem doesn't happen, but if you choose to render the menu as a list (using <ul><li>) then if happens every time, but is hidden on development systems where response is quick enough such that the rendering vertically is not visible to the naked eye. How can I cause the rendering to be horizontal (without the brief vertical rendering)?
Is there a way to add/delete/update the default classes (for instance AspNet-Menu-WithChildren,AspNet-Menu-NonLink ) of the html generated by the asp.net menu or treeview control? I am using CSSAdapters so the menu control renders in a list format instead of table format.
I am trying to style the menu control to allow the menu items to float to the right of the container, however I am unable to do so as whenever I am styling the a, ul or li it keeps getting overidded by asp.net and floats everything left.
I need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.
We have to develop an application which has a Vertical left pane menu control which displays all the web pages (A,B,C say). Now if user is in page A and filled some data and clicks on menu control to go to page B, all the data in page A needs to be saved. Also if all the required field in page A are not filled and user navigated to page B, there will be one ! sign after the menu so that user can understand that there some some more fields need to be filled up.
We are planning to place the menu control in the Mater page. Please give me some direction to do this. My question is:
1. If user change menu (In Master Page), how should we save data?
2. How should we display the ! in the menu control?
I know that the code depicted below will not work but I am including it to convey the idea of what I wish to accomplish. I want to use a different SiteMap to construct the menu on the displayed page for each of three different classes of service (COS).
I set a session variable named "COS" at the login and want to test its value prior to rendering each page. I want to display a menu based upon the appropriate COS. Here is my first stab at it but I know that I cannot include <asp:...> controls within the "case" statements. Can anyone suggest methods of doing this? I know C# and can use that but I do not know how to select the proper sitemap within the <menu> control. I am also using a CSS in my production version.
I am using frames in my webpage.in one of the frames i have a menu control whose items are database driven.when click on the menu item, i want another page to be displayed in other frame.
now i want to pass the the selected menu item text to the other page using session variable which is in the menu item click event method.but the thing is when i click on the menu item, the click event is not firing.
is there any better way to pass the selected menu item text to the other page?
I am trying to implement dropline menu using asp.net menu control. I found JQuery dropline code @ Dynamic Drive & currently using CssFriendly Adapters to get neet CSS, but i am unable to implement it as menu control renders its own css names.