.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

menu bar problem for browsers

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

i have one menu bar in my website  it showing some problems in different browsers

mozilla firefox 3.5 works and internet explorer 6 works fine but in

IE7 it shows javascript error  and in google chrome when i click on root items of menubar it shows child items in different place

how can i use my menu bar commonly for all browsers 

View Complete Post

More Related Resource Links

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?



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.


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? 

menu problem

Hiiiii Coders, I am just designing my menu. But still i want to geta menu like this- http://www.havells.com/  plz visit this link and same type of menu i want for my app also menu should cover my complete page means menu width should be equal to my webpage width which is 960px thanx and regards

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

Menu Problem

Hiiii Coders, I m using css, html and jquery menu. My problem with this menu is that its width should be exact 960px. It should cover exact 960px of my browser window. Whenever i tried this by increasing margin, padding the menu item goes to next line. When i decrease it, it leaves a space and not match my banner just below the menu which looks very much odd. the html for my menu is-<td align="left" valign="top" width="960px"> <div id="colortab" class="ddcolortabs"> <ul> <li><a href="Home-main.aspx" title="Home"><span>Home</span></a></li> <li><a href="Company-Profile.aspx" title="About Us" rel="dropmenu1_a"><span>About Us</span></a></li> <li><a href="Products.aspx" title="Products" rel="dropmenu2_a"><span>Products</span></a></li> <li><a href="Group-Companies.aspx" title="Partners" rel="dropmenu3_a"><span>Group Companies</span></a></li> <li><a href="customers.aspx" title="Customers"><span>Clientele</span></a></li> <li><a href="Career.aspx" title="Careers"><span>Ca

Top navigation menu render problem

Hi, we have a problem with top menu used in a sharepoint site. There is a main site and one subsite wich inherits navigation from the parent. When we are viewing the main site top menu renders ok. When we are viewing child site, with some computers and browsers (not all) instead of the name of the parent site it apears the link. Name of the main site is 'Activity' Name of the subsite is 'Programs' Problem Accesing main site menu renders like ->    Activity  |   Programs Accesing child site menu renders like ->     sites/activity  |   Programs I have uploaded some image to clarify http://yfrog.com/jltopmenurendererrorp   At the master page the top menu is set in this way     <PublishingNavigation:PortalSiteMapDataSource ID="topSiteMap" runat="server" EnableViewState="false" SiteMapProvider="CombinedNavSiteMapProvider" StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="true" TrimNonCurrentTypes="Heading" /> <SharePoint:AspMenu ID="TopNavigationMenuV42" Runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>" UseSimpleRendering="true" U

Menu selected item formatting problem in mozilla

Hello, I have a problem with menu slected item. when i click on menu item it shold display in different color for that i hv wrote below code in my master page cs file. on page load.  string thispage = this.Page.AppRelativeVirtualPath; int slashpos = thispage.LastIndexOf('/');string pagename = thispage.Substring(slashpos + 1); string pagename = thispage.Substring(slashpos + 1); foreach (MenuItem mi in Menu7.Items) { if (mi.NavigateUrl.Contains(pagename)) mi.Selected = true; break; } this works fine in IE but when i run in firefox my page formatting disturbs means the content page not coming in a proper place. thanx in advance. do the needfull.         

menu problem

hi alli made an asp.net menu and put it in aview or multiview i meanbut , the problem now that i want to when a menu item of that menu click , aview from that multiview appearshow can i do thatthanks

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.Net MEnu Problem



I have a page with an ASP.Net menu that also uses the CSS Friendly Adapter. WHen viewing the page on Localhost, it displays fine. When viewing the page on a remote webhost, it doesn't display properly. The Page source for both pages looks the same and the CSS file is viewable on the remote webhost. Here is what the menu looks like on localhost:

Here is what the menu looks like on remote webhost:

ANy ideas?



Problem merging toolstrip control placed in UserControl with MDI Form menu


I currently have an MDI application with a MenuStrip as Main Menu. The application has a child form where an instance of one UserControl with a MenuStrip is dynamically created when the form is loaded. The MenuStrip contained on this UserControl is correctly merged with the Menu of the MDI container. In response to a button click on the child form, an instance of another UserControl is created, containing a different Menu and the previously UserControl instance is discarded. The expected action is that the menu of the second UserControl will replace the menu of the first UserControl on the MDI container menu, but this is not happening and the main menu keeps the menu items of the first UserControl.

How can I force the merging of the menu contained on the second user control with the Main Menu.

Thanks in advance.

problem in asp:menu font after clicking the button...


i've got this problem in asp:menu once i click a submit button the asp:menu font is change... also the drop menu got a space... how can i solve this problem any help???

im using c# .net

Style on asp.menu problem



I'm using the default CSS style (Style.css) that VS2010 creates for and ASP.NET web app and also more or less the default master page (Site.Master).

In Style.css there is a style definied for the active menu item:

div.menu ul li a:active
    background-color: #465c71;
    color: #cfdbe6;
    text-decoration: none;

and this is the code for my menu from Site.Master page:

<div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" 
                    EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal" 
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Domov"/>
                        <asp:MenuItem NavigateUrl="~/Stranka.aspx" Text="Stranke"/>
                        <asp:MenuItem NavigateUrl="~/Kontakt.aspx" Text="Kontakti"/>
                        <asp:MenuItem NavigateUrl="~/Polica.aspx" Text="Zavarovalne police"/>
                        <asp:MenuItem NavigateUrl="~/Password.aspx" Tex

Problem Displaying Data Driven Menu


I am trying to display the menu items and submenus in a navigation menu control.

I am trying the code from this page; http://www.aspnettutorials.com/tutorials/controls/sqldb-driven-menu-csharp.aspx

This is what I got so far;

 protected void Page_Load(object sender,EventArgs e) {


        DataSet GetMenuData() {
        SqlConnection con=new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ToString());
       SqlDataAdapter dadCats=new SqlDataAdapter("SELECT * FROM MenuItems",con);
        SqlDataAdapter dadProducts=new SqlDataAdapter("SELECT * FROM SubMenus",con);
        DataSet dst=new DataSet();
        return dst;


        public void PopulateMenu() {
        DataSet dst=GetMenuData();
        foreach(DataRow masterRow in dst.Tables["MenuItems"].Rows) {
        MenuItem masterItem=new MenuItem((strin

WPF Ribbon's application menu alignment problem: bug or programmer error?

I'm using WPF 4's (in .NET 4) ribbon control, version 3.5.40729.1, in my application. The application menu and all sub-menu popups align as far left as possible, usually far outside the ribbon window. The expected location is that the application menu's left edge aligns with the ribbon window's left edge, and that sub-menu popups will align with the left edge of the right (usually recent items) content pane.

Here's an example screen shot illustrating the issue I'm having. Note that the left edge of this screen shot is the left edge of my monitor.

Here's a snippet of code showing the XAML of the RibbonWindow root element and the beginning of the ribbon declaration:


asp menu control problem


i am using Visual Web developer 2010 Express and on localhost this shows correctly but when I upload it to my website it doesn't. 

The static menu spreads out across the whole page, and when you hover, the background color.. get this.. will change on the padding but not behind the letters if you hover over the letters, BUT if you hover over the padding the background behind the letters will turn to display correctly.  It's standard menu control code w/ background color set on both static and dynamic hover.  I'm using IE 8 to view it.  You can see it at  ChewChews.net. 

Is it just me or what?

Mythica {under.her_rock}

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