Clicking On Menu Item In Chrome Does Nothing?

Feb 1, 2011

I've got a simple website that contains a master page with a menu on it. The menu works fine with IE and Firefox but when I try it in Chrome clicking the menu doesn't seem to work.

Here is how I have set the menu up:

How do I get the click on the menu to display the correct page?

<asp:Menu ID="Menu1" runat="server" Height="16px" Orientation="Horizontal"
style="margin-top: 0px" Width="917px">
<Items>
<asp:MenuItem ImageUrl="~/Images/MenuHome.jpg" NavigateUrl="~/Default.aspx"

[Code]....

The menu is wrapping round on to two rows, how do I keep it on a single row?

View 2 Replies


Similar Messages:

Web Forms :: How To Load A Page In The Frame From Clicking On Item In The Menu

Jan 12, 2010

i'm doing a website project for my studies .

and i'm going to work with frames instead MasterPage.

now, how do i load a page in the frame from clicking on item in the menu.

View 4 Replies

Web Forms :: Show The Sub Menu When Clicking The Main Menu Link?

Jun 23, 2010

I am using menu control . I want to show the sub menu when clicking the main menu link ?

View 6 Replies

Javascript - Hide Menu Item Or Dropdown Menu Item?

Aug 31, 2010

I have dropdown menu item ("pin this site") that i need to hide it or hide menu item itself ("My Network").

When I saw viewsource on page, I got below code.

<a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3
ms-topnavselected zz1_TopNavigationMenu_9" href="http://mynetworkqa.spe.org"
style="border-style:none;font-size:1em;">My Network</a>
<a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6"
href="javascript:__doPostBack(,
'ctl00$PlaceHolderTopNavBar$PlaceHolderHorizontalNav$topSiteMap''Pin')"
style="border-style:none;font-size:1em;">Pin this site</a>

How can I hide menu item?

View 1 Replies

C# - How To Pass Command Argument While Selecting A Menu Item In System.Web.UI.WebControls.Menu

Feb 2, 2011

I have a Menu. When user clicks on the menu , I need to pass a command argument. How is that done ?

This is the code for

[code]....

View 2 Replies

AJAX :: How To Highlight Menu Item Of Menu Control For Current Page

May 7, 2015

How to center the menuitems and highlight the selected menuitem in menu control in asp.net?

<asp:Menu ID="maspageMenu" runat="server" BackColor="#2D2D30" Width="100%" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1.4em" Font-Strikeout="True" Font-Underline="True" ForeColor="#009933" Orientation="Horizontal" StaticSubMenuIndent="10px" BorderStyle="Groove">
<DynamicHoverStyle BackColor="#18624F" ForeColor="White" />
<DynamicMenuItemStyle BackColor="White" HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="White" BorderStyle="Double" />

[CODE]...

View 1 Replies

Hide The Menu Item On Page Load And Show The Item After The Event Is Triggered?

Mar 24, 2011

I am using aspnet menu control and i want to hide the item initially on page load and show the item after an event is trigger say button lick event Can any one give me an example?

View 6 Replies

Web Forms :: How To Build A Menu And Each Item Of The Menu Has An Image As Background

Apr 19, 2010

I am need to build a menu and each item of the menu has an image as background knowing that i depend on sitemap to build the menu i used

[Code]....

where menuitem is in a css sheet

[Code]....

it display the image but in the wrong place?

View 1 Replies

Web Forms :: Menu Collapses Automatically When Click On A Menu Item?

Feb 21, 2011

i have a menu which is collapses as a default. This is done by following query.

[Code]....

Now, the problem is, whenever i click on any menu item by expanding the menu, the item page opens but the menu collapses again. I want to let the menu remain as expanded although a menu item is clicked. i.e. menu shouldn't refresh when a menu item is clicked.

View 6 Replies

Web Forms :: Menu Item Click Event For Menu Control

May 7, 2015

Sitemap & Menu:

<asp:SiteMapDataSource ID="Menu" runat="server" ShowStartingNode="false" />
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" OnMenuItemDataBound="OnMenuItemDataBound" DataSourceID="Menu" >
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="Menu" />
<asp:MenuItemStyle CssClass="Level" />
</LevelMenuItemStyles>
</asp:Menu>
<siteMapNode url="javascript:Logout" title="Logout" description="Logout" roles="*">
<siteMapNode title="Logout" description="Logout"></siteMapNode>
</siteMapNode>

I want OnClick event instead of navigation .

View 1 Replies

Web Forms :: Menu Control Click Event Not Firing / How To Pass The Selected Menu Item Text To The Other Page

Jan 10, 2011

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?

View 1 Replies

Web Forms :: Finding Menu Item From Menu Control?

Apr 15, 2010

I am working with asp.net 2.0 I have 1 problem Regarding Menu Control I used menu control in Master page. Now I have to find out Menu Item from Menu control depending on Condition. how to do that on server and Client side.

My code:

<asp:Menu runat="server" Orientation="Horizontal">
<StaticMenuItemStyle CssClass="jobTabNormal" />
<StaticSelectedStyle CssClass="jobTabSelected" />
<DynamicHoverStyle CssClass="jobTabHover" Font-Bold="true" />
<DynamicMenuStyle />
<DynamicSelectedStyle CssClass="jobTabDynamicSelected" />
<Items>
<asp:MenuItem Text="Job Details" Selected="true" NavigateUrl="#" Enabled="true">
</asp:MenuItem>
<asp:MenuItem Text="Cargos" Enabled="false" NavigateUrl="~/Pages/cargoDetails.aspx">
</asp:MenuItem>.......

View 3 Replies

Web Forms :: Menu Control Not Rendering In Chrome & IE8?

Jul 28, 2010

I am testing my website in numerous browers and have discovered (amazingly) that the asp:menu

control does not render properly in both the above browsers! Given that these browsers must account for

a large part of internet traffic it is curious that microsoft have not fixed this. I have looked at CSS Friendly but

if looks like a lot of work and change for my websites just for the one control that does not work.

View 1 Replies

Web Forms :: Google Chrome Not Showing Sub Menu

Apr 19, 2010

i have one asp.net application which has menu bar and sub menu are Horizontal. in my IE browser itz working fine.. but in google chrome itz not showing the sub menu.

View 7 Replies

Menu Overexpanding In Chrome When PopOutImageUrl Is Defined?

Jul 22, 2010

I have a horizontal asp.NET menu with a vertical submenu that has another vertical submenu. Problem is that in Chrome (works fine in FF and IE), when PopOutImageUrl is defined, when I hover over the 1st vertical submenu, it expands to half the screen. I clear out the PopOutImageUrl, and it's the right size, but I don't notice the 2nd submenu. So how can I keep my arrow image without covering my screen in menu?

<asp:MenuItem NavigateUrl="TestPage.aspx" Text="HorizontalMenuItem" PopOutImageUrl="" SeparatorImageUrl="SeperatorImage.png">
<asp:MenuItem NavigateUrl="TestPage2.aspx" Text="Test1" PopOutImageUrl="arrow.png" SeparatorImageUrl="" >
<asp:MenuItem NavigateUrl="TestPage3.aspx" Text="SubTest1" PopOutImageUrl="">
</asp:MenuItem>
</asp:MenuItem>
</asp:MenuItem>

View 3 Replies

VS 2010 - Menu And Google Chrome Browser

Aug 15, 2012

I have an application including an Asp:menu. This renders perfectly in both IE and Firefox, see screenshot gf1.jpg.

Running in Chrome the rendering is bad. There is added wide space in the top menu, so the area is much wider, and thereby not correct. See gf2.jpg.

I have tried using this workaround found by surfing, but it is still the same. Can I add some additional code, that will prevent this?

Code:
If Request.UserAgent.IndexOf("Chrome") > 0 Then
If Request.Browser.Adapters.Count > 0 Then
Request.Browser.Adapters.Clear()
Response.Redirect(Page.Request.Url.AbsoluteUri)
End If
End If

I want it to be displayed equally in IE, Firefox and Chrome....

View 2 Replies

Web Forms :: How To Remove Menu Item Or Sub Item By Value

Sep 20, 2010

I have an asp.net menu in which i have to let some nodes visible or invisible base on some logic.I know i can find value by item but i wnated to FindItemByValue of my asp.net menu.Could it be possible?

View 3 Replies

How To Show The Search Control On Clicking Of Menu

May 29, 2010

my project is related to tour and travels, i have created menus which are on masterpage, it contains, Home | hotel| bus| car etc... menus when i move pointer to hotel it will show me submenus like, add new hotel, modify hotel ,delete hotel etc... but one thing i want to do when i click on hotel menu it should display me the searchscreen for hotel searching i have created usercontrol for hotel searching, i have register that control on index.aspx page of masterpage. but the problem is that when i run that project before showing menus it shows error "Object expected" after clicking on ok button it displays menus, then i move pointer on any menu it will not show me the submenu while if i haven't register the search usercontrol and run the website it will show me submenus properly and one more thing if i select the search criteria and click on save button it again shows me same error "object expected" why it gives me error?

View 5 Replies

JQuery Menu Plugins Under MVC Only Work In Chrome Not In IE & FireFox

May 9, 2010

I was trying to prototype some jQuery-based menu into ASP.NET MVC. Just to name two examples here: [URL]Their demo page looks great, but when I integrate their sample code into MVC, the script no longer works in IE and FireFox, but it seems to work just fine under Google Chrome. Can someone kindly enough to point out what I missed? I will be honest here. I am still new to JavaScript. I have placed a copy of my VS2010 solution zip file @ [URL] Here is what I did. In the Site.Master, I have something like

<body>
<div class="page">{truncated...}</div>
<script src=[URL]" charset="utf-8"></script>
<asp:ContentPlaceHolder ID="ScriptContent" runat="server" />
</body>

And inside View file, I have the following

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="original">
{some demo block, copied from javascript demo}
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
<script type="text/javascript" src="<%= Url.Content("~/Scripts/jquery.columnview.js") %>" />
<script type="text/javascript">
$(document).ready(function () {
$('#original').columnview();
});
</script>
</asp:Content>

Compiled the code and ran it under IE. Ideally, it should work like the demo in [URL], but in reality, it only displays unordered list in plain view. (If you download the solution file and run it, you should be able to repro this as well). Next, tried with FireFox, not working either, same result as IE. Finally, when I try it under Google Chrome 4.1 (lastest version), and the script displays just fine.

View 2 Replies

Web Forms :: Menu Control Appears Slightly Off In Chrome And Firefox?

Dec 4, 2010

The right sides of the dynamic menu items are being chopped off. Also, the entire menu is moved slightly to the left in both browsers. I have been searching for a solution but everything I find so far with Google talks about a problem with the menu not starting on the correct node but I am not having that issue.

View 2 Replies

Web Forms :: Menu Control - Small Hyperlink Area In Firefox And Chrome

Feb 16, 2010

I am having an issue with the hyperlinks that are created as part of a horizontal menu control. You have to position the cursor in a very narrow range near the very top of the menu option to find the hyperlink associated with that menu option. This is only the case with Firefox and Chrome. You can try it for yourself at [URL] Try clicking any one of the horizontal menu options ("Services" for example. You will see that it is very particular where it will allow you to click to activate the hyperlink. Markup:

[Code]....
Skin:

[Code]....
CSS:

[Code]....

View 2 Replies

Forms Data Controls :: How To Get Select Item Index In Listview Without Clicking Button

Apr 8, 2010

I trying this solution in visual basic but it dosent work, im getting a error:

RegisterForEventValidation can only be called during Render();

In the line:Dim script As String = Me.ClientScript.GetPostBackClientHyperlink(btn, "", True)

[Code]....

View 3 Replies

Forms Data Controls :: Clicking On Gridview Item To Retrieve Info From Database?

Feb 4, 2011

I am Working on a ASP.net project(VB.net), i have a gridview to display names of "Patients". Each patient has a unique "labID",

I have stored the patients "diagnosis" information in seperate tables( stool,urine, blood etc)

what I need is to retrieve this info when I click on a patients name in gridview.

View 6 Replies

How To Reference An Item In A Menu

Oct 29, 2010

I'm using the Accordion control for the first time. I'm using an example I found on the web, however, this example doesn't show how to reference an item in a menu. Here is my code so far:

[Code]....

In the highlighted code, I was wondering how you reference each separate item. These items don't appear to be part of a collection rather separated by a break. How would I reference them in VB.Net code?

View 20 Replies

Web Forms :: Clicking The Label Of A Dropdown List - Resets The Selected Value To The First Item In The List?

Feb 17, 2010

Clicking the label of a drop down list, re-sets the selected value to the first item in the list. This has a history of causing data entry problems when users accidently click on the label.

In the below example ddlContactType has a selected value as 'PRIMARY' and whenever i click on the lblContactType Text, the dropdown box Selected value is changing to "Select One" Text.

How to prevent this one. It should be on PRIMARY Only.

<p>
<tr> <td ><asp:Label ID="lblContactType" Font-Bold="true" Text="Contract Type: *" ForeColor= "red" runat="server" AssociatedControlID="ddlContactType"></asp:Label> </td> <td > <asp:DropDownList runat="server" ID="ddlContactType" DataSourceID="SqlDataSource2" AppendDataBoundItems="true"
DataTextField="TYPE" DataValueField="ID" SelectedValue='<%# Bind("CONTACT_TYPE_ID") %>'>
<asp:ListItem Text="Select One" Value="0" Selected="True"></asp:ListItem>.......

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved