.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

CSS Menu Adapter is showing my Menu in the correct way?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application


I have added this Hortizontal Submenu with Horizontal Menu using CSS Friendly Menu Control Adapter in C# in my ASP.Net 3.5(C#) website. But its not working correctly because it is displaying Home as the only Menu item and all the other sitenodes as its subMenu. It worked perfectly fine without adapter but after adding adapter menu is just left with single menu item and all other items become its submenu items.

My siteMap structure is as follows-

  <siteMapNode title="Home" description="Home" url="~/default.aspx">
    <siteMapNode title="Products" description="Our products"
      url="~/Products.aspx" />      
    <siteMapNode title="Services" description="Services we offer"
        url="~/Services.aspx" />
        <siteMapNode title="Training" description="Training classes"
          url="~/Training.aspx" />
        <siteMapNode title="Consulting" description="Consulting services" 
          url="~/Consulting.aspx" />
        <siteMapNode title="Support" description="Supports plans" 
          url="~/Support.aspx" />

View Complete Post

More Related Resource Links

Modify Menu adapter to show selected


Hey, I need some help modifying the menu adapter code to give child <ul> elements a class value indicating that the parent is selected. It should render like this:


< ul class="AspNet-Menu">
	< li class="AspNet-Menu-WithChildren  AspNet-Menu-ChildSelected">
		< a href="/rockit/admin/Default.aspx" class="AspNet-Menu-Link  AspNet-Menu-ChildSelected">
		< span>Mypage< /span>< /a>
			< ul class="AspNet-Sub AspNet-Sub-Selected">
				< li class="AspNet-Menu-Leaf  AspNet-Menu-Selected">
					< a href="/rockit/admin/Default2.aspx" class="AspNet-Menu-Link  AspNet-Menu-Selected">
					< span>Test< /span>< /a>
				< /li>
				< li class="AspNet-Menu-Leaf">
					< a href="/rockit/Default3.aspx" class="AspN

In CssFriendly adapter Scrollbar is needed in Vertical Menu

Hi all,I have used cssfriendly adapter for creating vertical menu.... as i have more number of submenus and more number of listitems.... i need scrollbar.. in menu as it goes down the browser window..or menu should move up as it hit browser window....I tried "IFRAME" scrollable yes...and many different approach but could not get it....plz anybody can help it out.........

Creating (hiding/showing) admin menu for my Website?

Hi there!I am currently developing a website for a friend of mine who is a dj. I have a login page, which works fine however i want to inplement a menu that only users with the Administrator role can view. I have done alot of research and i have found ways to stop a user from visiting a page, when they click on it it takes the to the login page. But i want to completely hide the menu from Non Admins. Any suggestions would be greatly Appreciated.Thanks in advanced,Jordan.

Menu not showing up on the page.



I'm hoping someone here could help me figure what might be happening here. I'm trying to implement a menu system using CSSFriendly Adaptors.


To start with I referenced the CSSFriendly.dll into the Bin folder then added the menu.css and CSSmenu.css to the css folder. and used the following web.config file. Then I created a simple page with a menu control

The page loads with the menu system and all works great as it should.

<?xml version="1.0"?>

        <!--Sets path for JavaScript files for CSSAdapter-->
        <add key="CSSFriendly-JavaScript-Path" value=""/>

        <compilation debug="false" strict="false" explicit="true" />
                <clear />
                <add namespace="System" />
                <add namespace="System.Collections" />
                <add namespace="System.Collections.Specialized" />
                <add namespace="System.Configuration" />
                <add namespace="System.Text" />
                <add namespa

New menu not showing when content management enabled

As soon as I enabled content management on a custom list, the New menu dissapeared. Also on the home page under the list, "Add a new item" link also dissapeared. Is this by design.
How can I bring that feature back.

Sub sites showing at top level on quick launch menu


After making a number of Teamsites, I am experimenting with Publishing sites.  I am experiencing odd behavior in the Quick Launch and don't know if this is a function of the Publishing template or one of the configurations I have tinkered with.  The problem is that when I make a new site in my collection, the site name is displayed in the quick launch in the same heirarchy as Sites, Lists, Documents, etc., instead of showing up UNDER the Sites category.  Can anyone advise please?

There are no mistakes; every result tells you something of value about what your are trying to accomplish.

"Close Solution" not showing on SSMS File menu

I upgraded to SQL Server 2008 R2 on 4 different PCs.  On only one of them, when I open SSMS and click File on the menu, the option to "Close" is available, but the option to "Close Solution" is not.  Further, if I right click on the menu bar and click Customize, under the Commands tab, I click on File under Categories, and again "Close" is available, but "Close Solution" is not.  "Close Solution" is available on the other 3 PCs that I upgraded to R2 on.  I tried using the installation disk and clicked on Repar, but it did not fix the problem.  How can I get "Close Solution" to appear on the File menu?

In CssFriendly adapter Scrollbar is needed in Vertical Menu


Hi all,

I have used cssfriendly adapter for creating vertical menu.... as i have more number of submenus and more number of listitems.... i need scrollbar.. in menu as it goes down the browser window..

or menu should move up as it hit browser window....

I tried "IFRAME" scrollable yes...and many different approach but could not get it....

plz anybody can help it out.........

Need a CSS Friendly Menu Adapter in with I can assign each first-level menu item a different CSS?



According to my project requirments I have to create an ASP.Net menu with each menu item having a different background image.

For this I need a CSS Friendly Adapter, I have searched alot and found this one Horizontal Menu Adapter .

Now I have a question regarding the web.sitemap defined in an example that comes with this above adapter code-

<?xml version="1.0" encoding="utf-8" ?>
<siteMap >
  <siteMapNode url="Nothing.aspx" title="Nothing"  description="Nothing">
    <siteMapNode url="Home.aspx" title="Home"  description="Home"></siteMapNode>
  <siteMapNode url="Forum.aspx" title="Forum"  description="Forum" >
    <siteMapNode url="MyPost.aspx" title="My Posts" description="My Post"/>
    <siteMapNode url="AllPost.aspx" title="All Posts" description="All Posts"/>
    <siteMapNode url="NewPost.aspx" title="New Posts" description="New Posts"/>

Report Builder 3.0 with WSS not showing Report Builder Report on New menu


We have installed Report Builder 3.0 with WSS and can edit a report in the ReportingServices list of reports using the dropdown menu on the report name.

We added the Report Builder Report via Library Settings > Content Types But we do not see the option on the New menu at the top of the ReportingServices page. To be sure it was working correctly we added other content types and we see those on the new menu when opened.

Are there any setting that need to be made in any config files anywhere to allow the report builder options to be available on the new menu on a document list?




ASP.NET Menu with jQuery Superfish

Choosing the right type of menu for a website is not easy at all. The ASP.NET Menu Control is definitely NOT a good starting point due to the horrendous markup it renders, nor is it good for SEO because of the Markup/Content ratio, neither can it be easily styled.

Problem making Role based Menu in MVC application



 I want to make Rolebase menu in MVC such that if user doesnot have permission for some action then that Action name shouldnot be shown in the Menu.

 I have used the code in the url(http://forums.asp.net/t/1566328.aspx) in my MVC application.My application is a Discussion Forum(in MVC) same functionality as in this forum forums.asp.net

 I have used Controllers for post, thread etc.In each controller there are some actions that are using [Authorize(Roles)] attribute

 but this coding does not count  those Actions in Controllers having Authorize attribute according to the url http://forums.asp.net/t/1566328.aspx 

 In the code, Authorize attribute is applied to Controller class, but my requirement is of Applying Authorize attribute to some actions in controller so that some are available for all users and  some links are available rolewise.Now what is the solution for that?



DropDownExtender - menu disapears


Hello all, first ever post here :)

Hope you guys can help me out, this drives me crazy...

So I got 2 updatepanels on my page. In one there is a Timer which updates for example a label. In the other one there is a dropdownextender. Everytime the timer ticks while the dropdown menu is displayed the menu disapears. I attached the sample code below....any insights on this? And yes, the dropdown and the label need to be in two seperate updatepanels....

Many thanks



<form id="form1" runat="server">

<asp:ToolkitScriptManager ID="ScriptManager1" runat="server" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="4000" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

<asp:UpdatePanel ID="UpdatePanel2" runat="server">


Can't get an Icon to show for Desktop shortcut and Program Menu



I've created a SetupWizard, but can't get it to show the Icon for the shortcut on desktop and program menu. The installation goes fine without any errors, the only problem is the icon.

I've made a shortcut of my exe file in the Application Folder and dragged the shortcut to the Desktop folder, then on the shortcut properties, I assigned it an icon picture located in Application Folder.

Any suggestions will be very much appreciated.


May i use the collapse and expand feature (like tree menu) in Report ?


HI all,

May i use the collapse and expand feature (like tree menu) at Report iam using the Report viewer  Control for displaying the Report on my Asp.net Page .


I have number records and each record have detail as i clicked or expand the record then details will be shown is it possible with report viewer control 
If any one have experince before please share the ideas.


Best Regards

Changing classic asp.net Menu to CssAdapterMenu


Hello Friends,

                     I have been using asp.net menu control that is programmatically binded at runtime and has n child node levels. Now i want to use CssAdapterMenu instead because the menu control contains more than 1000 menuItems(in the near future it can also be more 2000 menuItems) and has very slow response in IE 6 or IE 7.

                    Now my question is how should i change the classic asp.net menu to CssAdapterMenu. What should be the steps? Any samples example of n child node levels would be helpful


Asp.net menu cssadapter


Hi All,

I am using asp.net menu using cssadapter. How Can I change this the menu show menu using mouse click




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend