CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/30/2005 5:06:38 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 12 Views: 60 Favorited: 0 Favorite
13 Items, 1 Pages 1 |< << Go >> >|
Rafa
Asp.Net User
Submenu not showing in Masterpage4/30/2005 5:06:38 AM

0

I looked for a thread about this, but found nothing... Probably something really simple, but when I add a Menu control to a masterpage it works fine as long as their aren't any submenus, but I can't for the life of me get a submenu to display. What am I doing wrong? The menu works great on a content page.

Edit: Well I am starting to think this is a problem with the menu being in a div and not the masterpage... still can't figure out why though


http://incendy.spaces.live.com
BrockAllen
Asp.Net User
Re: Submenu not showing in Masterpage5/1/2005 3:27:50 PM

0

You should post the smallest code sample of your master that reproduces the problem.

-Brock

 


DevelopMentor
http://staff.develop.com/ballen
Rafa
Asp.Net User
Re: Submenu not showing in Masterpage5/1/2005 4:03:31 PM

0

no problem...

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

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

<div>

&nbsp;<div style="width: 800px; height: 100px; margin-right:auto; margin-left:auto">

<div style="position: absolute; margin-right:10; margin-top:25; left: 795px; top: 47px;">

<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">

<Items>

<asp:MenuItem Text="Test" Value="Test">

<asp:MenuItem Text="SubTest" Value="SubTest"></asp:MenuItem>

</asp:MenuItem>

<asp:MenuItem Text="Test2" Value="Test2">

<asp:MenuItem Text="SubTest2" Value="SubTest2"></asp:MenuItem>

</asp:MenuItem>

</Items>

</asp:Menu>

</div>

</div>

</div>

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>

</form>

</body>

</html>


http://incendy.spaces.live.com
BrockAllen
Asp.Net User
Re: Submenu not showing in Masterpage5/1/2005 4:39:27 PM

0

Yeah, that's definetly the style on the <div>. Unfortunately I don't have an answer for you as to why it's not working. I'd suggest debugging the javascript for the menus (or even just inspecting it) to see perhaps why it's causing that odd behavior. Good luck.

-Brock

 


DevelopMentor
http://staff.develop.com/ballen
Rafa
Asp.Net User
Re: Submenu not showing in Masterpage5/1/2005 4:49:21 PM

0

Thanks for the reply! I don't know if this helps, but the first place I noticed this problem was when I tried to add submenu's to the Personal Site Starter Kit, although the positioning there is similar except in a CSS file. How would I go about debugging the javascript?
http://incendy.spaces.live.com
Dave Sussman
Asp.Net User
Re: Submenu not showing in Masterpage5/2/2005 8:55:36 AM

0

It's not the javascript, it's your css. Try removing the style attribute for the inner div - the sub menus do work.

Dave

Rafa
Asp.Net User
Re: Submenu not showing in Masterpage5/2/2005 3:23:30 PM

0

Ok, i will do that, but how do I position the Menu? Would tables be the best idea?
http://incendy.spaces.live.com
Dave Sussman
Asp.Net User
Re: Submenu not showing in Masterpage5/2/2005 5:16:58 PM

0

You can use CSS, you just need to make sure it's correct. I'm not really a CSS expert so couldn't immediately see wht was wrong with it. Tables work fine too, although CSS for layout is preferable. Have a search for CSS menus and you should be able to find plenty of help.

Dave

jstranger
Asp.Net User
Re: Submenu not showing in Masterpage5/4/2005 9:23:04 AM

0

For what it's worth, I have the same issue with a vertical menu on a master page that worked fine in Beta 1 - dynamic submenu is clearly being generated as it blanks out part of the main content area, but is invisible. I have the menu in a div with an ID of 'navbar' which in the CSS stylesheet has the following:

#navbar
{
position: absolute;
top: 20%;
width: 15%;
}

The main content area div is similarly positioned with a left of 15%. I seem to recall having to add a z-index of -1 on the main content area for this to work in Beta 1, but this has no effect in Beta 2.

Removing the id from the navbar div does indeed cause the dynamic submenu to work as intended, but obviously screws up my layout. I really don't want to have to use tables.

Jon

BrockAllen
Asp.Net User
Re: Submenu not showing in Masterpage5/4/2005 2:47:30 PM

0

I'm no CSS expert either (far from it), but I've been using several <div style="float:left; width:20%"> (with other attributes too) to get a nice table-less lineup. This site helped me using float:

http://css.maxdesign.com.au/floatutorial/

-Brock

 


DevelopMentor
http://staff.develop.com/ballen
Dave Sussman
Asp.Net User
Re: Submenu not showing in Masterpage5/4/2005 2:55:55 PM

0

Yep, CSS is a black art, something which I'm trying to learn the ins and outs of. I got the CSS for the menu from elsewhere (the url is in the code) and from http://www.alistapart.com/. Also checkout http://css.maxdesign.com.au/listamatic/, which is dedicated to lists.

Dave

jstranger
Asp.Net User
Re: Submenu not showing in Masterpage5/8/2005 4:59:19 PM

0

Thanks for this - I think I and several others had pretty much come to the same conclusion that flyout dynamic submenus do not appear to be compatible with relative or absolute DIV positioning (whereas this was not an issue with beta 1 for some reason). Changing to use of floats as suggested got them working again (the maxdesign tutorials are excellent). Unfortunately I now have to figure out a different way of gluing my footers to the bottom of the viewport!

 

Jon

 

kaihanson
Asp.Net User
Re: Submenu not showing in Masterpage2/6/2006 5:12:44 PM

0

Having the same problem...Seems to be the position:absolute statement.  Tried z-index in a variety of different ways with no success.  When I switch to position:fixed the menu will work.  However, it screws my layout up...love to hear anymore suggestions...

13 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dreamweaver CS3 for Dummies Authors: Janine Warner, Pages: 434, Published: 2007
ADOBE INDESIGN CS2 BIBLE Authors: Galen Gruman, Pages: 936, Published: 2005
InDesign CS2 at Your Fingertips Authors: Ted LoCascio, Pages: 402, Published: 2005
QuarkXPress 6 bible Authors: Galen Gruman, Barbara Assadi, Rick LePage, Pages: 962, Published: 2003

Web:
Flyout sub-menu not firing UltraWebMenu_MenuItemClicked on a ... MasterPage) ??? but I'm definitely NOT getting a break for the -sub ... you only have 2 levels of menu-ing: "Top Item" and "Sub Menu Item". ...
Flyout sub-menu not firing UltraWebMenu_MenuItemClicked on a ... Flyout sub-menu not firing UltraWebMenu_MenuItemClicked on a MasterPage. ... I should also add that the UltraMenuBar is on a Master Page (Inherits System. ...
sub menu is not showing - ASP.NET Forums sub menu is not showing. Last post 02-19-2008 1:42 AM by dilipv. ... i have a menu control in master page.and another pages include this ...
Unable to click submenu items of menu control in master page when ... I am unable to click on submenu items of a .Net menu control in a master ... page when overlapping with table in the content page.
Menu not showing over master page's ContentPlaceHolder - ASP.NET ... Menu not showing over master page's ContentPlaceHolder ... When I "mouse over" my menu, the sub menu list should apprear over the ContentPlaceHolder ...

One Web.sitemap for multiple SiteMapDataSource / Menus - ng.asp ... I get a "Could not find the sitemap node with URL" error. .... up in the choices . ... sub-menu not showing when there is an iframe on the page . ... footer in masterpage gets bigger if the page doesn't have documenttype ...
MasterPage, Javascript, and XHTML : Microsoft JScript runtime ... form tag in master page · accessing base class of page from the masterpage (via code) · sub-menu not showing when there is an iframe on the page ...
treeView dynamic data source - ng.asp-net-forum ... .... master page template not showing up on all pages ...
StaticSelectedStyle Not Working? - ng.asp-net-forum ... I have a Master Page with a User Control, with a Menu Navigation control. .... crazy challenge for asp:content not showing up. ...
How to display certain levels in a treeview menu? - ng.asp-net ... crazy challenge for asp:content not showing up. calling fuction in child page from master page · can you overlay a menu on top of an image? ...






how to control the client script position generated by menu control?

access masterpage from a class

link in a menu

duplicate text from masterpage?

sitemap custom attribute use

classic .asp site in content page - can it be done?

content placeholder position

get more themes?

problem with ~/ in master page path.

treeview in masterpage

slant header using css or javascript

menu control - vb.net (how to make disappear one of the menu items when the user is authenticated)

remove arrow from menu

entering a target into a sitemap

how to override master events?

treeview find selected node

navigation control to display directories and files from windows.

master page contents disappearing

access to control stepnextbutton in stepnavigationtemplate

using a database with menu control

copy web site & themes

skins don't seem to work if the aspx file is in a different directory from the master page

web.sitemap top level links still seen with securitytrimmingenabled="true"

bolding the current item in a sitemap

sitemappath bound to web.sitemap

asp.net menu or tree view with checkboxes

site map different for each user using sitemap provider.

move portion of asp:menu to right

the control with id 'upnlclientorders' requires a scriptmanager on the page

storing a var in the master page

   
  Privacy | Contact Us
All Times Are GMT