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

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

Is it possible to have a right to left asp.net menu?

Posted By:      Posted Date: October 23, 2010    Points: 0   Category :ASP.Net


Is it possible to have a right to left asp.net menu control in .Net 4.

I use Asp.Net Menu server control and I cant make it right to left. I want sub menus open at the left side of parent menu.

I checked direction:rtl and its not working.

If i set dir="rtl" on a div that contains the menu it works on firefox but on IE the menu jums out of the screen.

Is there any good solution for this?


View Complete Post

More Related Resource Links

collapsing the left menu as a default

 Hi! i have a menu on the left of the page which appears in the expandable form. I want to see them as the collapsed menu based on the site map group. I have posted the site map code and the master page here. Any idea please<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/Default.aspx" title="Modules" description="Modules"> <siteMapNode url="~/Modules/Hire/Hire.aspx" title="Hire" description="Hire" resourceKey="HIR"> <siteMapNode url="~/Modules/Hire/Hire_Request_Navigator.aspx" title="Booking Request" resourceKey="HIR_REQ" description="Booking Request"> <siteMapNode url="~/Modules/Hire/Hire_Request_Detail.aspx" title="Request Detail" resourceKey="0" isPhantom="true"/> </siteMapNode> <siteMapNode url="~/Modules/Hire/Hire_Booking_Navigator.aspx" title="Booking" resourceKey="HIR_BOO"> <siteMapNode url="~/Modules/Hire/Hire_Booking_Fleet_Available.aspx" title="Booking Vehicle Selection" resourceKey="0" isPhantom="true"/> <siteMapNode url="

How to show left menu and center of page contents in an ASPX page?


Scenario : Within sharepoint site user will click on a hyperlink which should take him to a new page and this new page will have the same header/footer (so I will create a copy of the masterpage with just header,footer) but the left side menu navigation will dynamically change and for each click event within the menu, the center of the page will show varying texts plus videos.

Need some directions as how I can acheive the above? What should I use to build menu control and similarly how to control the center text of the page.  

Can I acheive the entire above using webpart and if so how? Do I need to use user control for menu and for center text display webpart ? or else any other best options?  

Please suggest.

How to left allign menu items in a menu centralized using div


I have a menu control in asp.net 3.5.  The menu control is centralized in the page using a div. I have written CSS to align menu items to the left... In IE8, the menu items also appear centrally alligned.  However in firefox the menu control is correctly aligned to the centre where as the menu items are aligned to the left.  I want the menu items to be alligned left while the menu control allign to the centre of the page in IE too...

Thanks in advance.


submenu of main menu should come in the left side of everypage


I am using asp.net Menu control with sitemap datasource. There is one Web.sitemap in the folder where links are saved in such a manner

<siteMapNode url="~/MainMenu.aspx" title="Software Development Solutions" description="Software Development Solutions" >

      <siteMapNode url="~/submenu.aspx" title="CRM Software Application Development" description="CRM Software Application Development" />

     <siteMapNode url="~/submenu.aspx" title="CRM Software Application Development" description="CRM Software Application Development" />
<siteMapNode url="~/submenu.aspx" title="CRM Software Application Development" description="CRM Software Application Development" />


One asp.net page as i m using asp.net menu control. i want when MainMenu is clicked all the sub links of that menu should be come in the left side of the page.

How to create a webpart page with a site menu on the left?



This might be another novice question but i really googled and searched this site and didnt find any answers (even though topics close to this are discussed, this one isnt).

Scenario: I have a webpart i wrote that shows people who has birthday and provides sorting tools (in exact month/ exact day/ name contains string). This webpart has to be displayed as the page's content (in the center, its ~900px wide). This page must have the site menu on the left as well so users can navigate freely.

I tried to create a new webpart page in MOSS and successfully placed the webpart there, but the page wont have the left site menu.

I need that left menu!

I tried creating a web page from a template with a strip (sorry cant find better word to explain that) on the left but that strip only allows to add more webparts, and doesnt allow to show the menu there.

How do i show the website menu (the one with links to Tasks, Lists, Users etc, the one that always shows itself on the /sites/sitename/ page and when viewing Lists) on my web part page?

Or do i have to go other way, meaning, not by using a web part page, but with some other way, like create an aspx page or something?

Please help.

Hide public view of list on left menu - no SD - Sharepoint 2003


Hi folks,

I'm working in a crippled sharepoint environment - basically our multinational company has given us a Sharepoint with a Teamsite template and no tools to get the best out of it.

I have created a site with a list containing 3 public views. 2 of these views are for the "the workers" to input and view data. The 3rd view has all items, and is for management information for a select number of users. These users do not use the view directly, it is picked up by an Excel spreadsheet.

The 3rd view in it's completeness is sensitive information, and we would like to remove the view from the views menu on the left hand side. I suspect that this may be possible using javascript code, in a CEWP. I am making this assumption because this article seems to be doing something similar:


I am not familiar with javascript or the objects referred to, although I have used javascript previously to amend column widths in a view. 

Any suggestions?




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.

left right margin


Hiii Coders ,

I have created my website. Now what is my requirement is that on higher resolution it should be centralized means margin from both sides should be same.

How can i get it working

plz provide me some code snippet plz

thanx and regards

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




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

How to keep the hover for Parent menu and set the selected menu item css for child menu item?



I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.

I have the following questions:

  1. Is there a way to keep the parent menu item hovered while hovering over the respective child menu items?
  2. Is there a way to keep the child menu item selected? I am able to set the css for the parent menu, however I was wondering if the same is possible with the child items.

Please help! Smile


Moneka Smile

Drop-Right/Left submenus


 I'm currently using the CurvedMenuProjects custom control and I does almost everything I need a Menu Control to do but it doesn't swap submenu position (left/right) when the dropdown goes off the right edge of the screen.


Does anybody know if it's possible to configure the control to do this?


Any pointers on how I can get started writing the behavior into the custom control myself?




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