.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

help with ie css for .net menu control

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

Having problems coding the css for my site to work with ie



The menu looks great on firefox but on ie and safari it goes crazy. I have tried everything to fix this and cannot find a solution please help

View Complete Post

More Related Resource Links

Dynamic menu control


Dear all,

I want to get the names of some folders in my drive and populate my menu control with the names of those folders.

Getting the folder names is not the issue, but how can i populate my menu with the names of getted foldernames.

I tried this:

DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("~\\MyFolders\\"));
DirectoryInfo[] dirs = dirInfo.GetDirectories();
Menu1.DataSource = dirs;

But im getting the error:

HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.


How can i achieve this?

Thanks in advance.


Menu Control


Hi all

Ive got a Menu Control linked to Web.sitemap but would like a step by step example of how

to make it look and behave like the one I found here:-



Is there somewhere I can download an example of this or one similar?




Menu items of Welcome control behaves incorrect in non-IE browsers.


We are using wss 3.0 sp2

I am referring to the welcome control that is part of standard sharepoint pages. This is the in the masterpage. The welcome contrrol has options such as 'sign-in as different user' , 'signout' and so on. When user takes the mouse and tries to click on the sub-menu it doesn't work as if the menu item is not getting focussed (however up/down arrow with keyboard works fine). 

I know that sharepoint sites are not best when viewed with firefox, safari, chrome etc  but is there a fix for this? Is it do with 'z' index setting or something? Can this be fixed through javascript?  

Please share your views/solution.


Menu control rendering issue with IE8



Using VS2010, I created an ASP.NET 4.0 web application and simply added a couple of menu items below the "Home" menu item in the master page that's created by the project wizard. I made no other changes - no code, no stylesheet changes.

If I run the app locally then everything is fine. I suspect because the local IIS is responsive enough for the problem not to occur.

If I deploy the app to a web host (discountasp.net) then I see the menu render vertically for less than a second before it renders correctly. If I refresh the page a few times then usually I can see the menu vertical flash but sometimes I can't, so there's some sort of timing consideration.

I'm using IE8. The problem doesn't seem to occur with either Firefox 3 or Chrome.

Have others seen this problem?

Any suggestions for a fix?

I can supply the zipped up project if anyone wants it.


problem with menu Control

i am using menu Control and i got a interesting think when i run it through right click and click view in browser then sub menu under menu id display but when i will run it through debug mode then only root is display sub menu is not display.why? 

dynamic menu control call in login page

Hi ,i have declared two control in my master page , how wants to call this menu control in child page ( that is login page)i want to bind the menu control dynamically based on login previlagepublic Menu newMenu = new Menu();  public MenuItem newItem = new MenuItem("Master");

Menu Control expansion weired issue.

Menu control expands on load (vertically, 100%) and then contracts to its horizontal position. The code I am using- ASPX page: <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="False" IncludeStyleBlock="False" Orientation="Horizontal" DataSourceID="SiteMapDataSource1">                    <DynamicMenuStyle CssClass="DynamicMenu" /></asp:Menu>   CSS:  .DynamicMenu{ display: none;} This can be live at www.jaindata.com Can someone please help? Thanks, Swapneel Shah 

The OTHER Menu control issue...

Ok, everyone knows that the z-index is messed up in IE8 and that requires patches or workarounds...What I can't seem to find a solution to is the white background on the DynamicMenu parts of a Menu control.  Setting the background color to transparent or not setting it all doesn't seem to have any effect.  This is only a problem in IE8, Firefox 3.6.8 renders the dynamic menus without the white background.

Problem with Asp:menu control in IE8

Hai friends, Here i am facing a new problem,i created a navigation page by using asp:menu control,and after when i viewed it in Internet explorer8, the SubMenu's are not displaying. But when i checked the Compatibility view button which is next ot Stop and Refresh Or in Tools->CompatabilityView. then it is displaying the submenus. The same problem exists in Google Chrome but not in FireFox Can any one tell me the solution how to view the submenus without changing the Compatability settings. Thanks Maniraju

ASP.NET menu control with CSS Friendly dll casuses slow rendring

I am using ASP.NET menu control  with CSS Friendly dll casuses slow rendring,Is there any way i can make little bit fast rendring?Thanks in advance

would like to put dealy on Menu control

I am using dhtml script from dyanamicdrive.com for Horizantal menu in web sites, On my menu link when I mouse over, I would like to put some delay before , it will show menu, can some one tell me how to do this?   thank you  

Get Rid of Triangle Image on Menu Control

Does anyone know how to get rid of the Triangle that appears on the menu control? I didn't see any properties mentioned in the tree/menu control article by microsoft(http://msdn.microsoft.com/asp.net/whidbey/default.aspx?pull=/library/en-us/dnvs05/html/treeview.asp). I currently do not have the Beta installed so I don't have the library of docs to check for additional properties. I just want to use an image in the top menu items and want each image to be directly next to each other (Horizontal Configuration) but the Black triangle is getting in the way. Besides actually deleting the image from the server is there a way to do this? Thanks! VC

Navigate Menu asp Control Add Items (HOW?) c#


I feel like a complete idiot!! :)

I have a asp.net menu control on a default.aspx page

I want to add items to this menu control using the code behind file (C#)

How do I do this?

My menu id is mnuHeader

YES, newB question .. LOL


Thanks for your help in advance!!! 

Object Reference Error While Rendering Menu Control


I am having a problem with rendering a menu control inside a server control. I am getting an error in the RenderContents override method when I try to render the Menu Control. The error I am getting is an Object Reference error. The code is below...

[ToolboxData("<{0}:Login runat=server></{0}:Login>")]
    public class Login : CompositeControl
        #region Members

        Label tst;
        Menu loginMenu;
        MenuItem mainLoginItem;
        MenuItem loginItem;
        MenuItem usernameItem;
        MenuItem passwordItem;
        SubMenuStyle subMnuStyleControl;
        SubMenuStyle subMnuStyleMenu;

        bool isLoggedIn = false;


        #region Properties

        public bool IsLoggedIn
            get { return isLoggedIn; }

            set { isLoggedIn = value; }


        #region Overridden Events

        protected override void RenderContents(HtmlTextWriter writer)



        protected override void OnInit(EventArgs e)

            #region Add CSS references
            string cssUrl = Page.ClientScript.GetWebResourceUrl(this.Ge

ASP Menu control problem


Hey I'm building a new site in VB.NET 4.0 and I just noticed that the ASP Menu component breaks W3C validation. Normally I'm not concerned with the whole deal but this project requires 100% validation and I'm building this from the ground up. I barely have anything in place but I have everything necessary. The second I add the ASP Menu and bind it the validator errors out with this:

Line 36, Column 214: there is no attribute "valign" 
.sg74gxVJW81&t=634083384129375000" alt="Expand Home" valign="middle" /></td>

It's a normal site using a master page. UTF-8 with XHTML 1.0 Transitional. I have a valid CSS and Sitemap. I would go back to treeview but the list is going to get ridiculously big and that's where I need this menu to replace it entirely. Strange part is that I never noticed this problem before. Is it an ongoing problem or did I find a new bug? I would like to see a fix for this if possible.

ASP Menu Control IE8 incompatibility



Menu control is not compatibile with IE8.  Is there a fix for this problem?  When you open the application in IE8 it only shows menus in two lines and you cannot click on it.  And then it displays a white screen.  I think that I implemented a meta tag at the time setting compatibility to IE7 but it does not seem to work.

CAn you help?  Thank you.




Menu control


Hi there,

I am trying to implement the asp:Menu control for my own needs. What I am trying to achieve is a menu that have a different images for

each menu item for the three different modes, item Image, hover Image, selected Image.

Is it possible implementing this behave using ASP:MENU?

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