menu on Master a mess in IE !

J

Jeff User

VS2005, Win XP, IE 6.0
Who ever would have thought. My menu looks better in firefox than
IE6.0 !!

If I create a site menu on a regular webForm it displays ok.
Menu is only 2 levels deep (not counting hidden "home" level 0)

But if I create it on a Master page (which I need to do), when I run
the content page it loses all formatting. I mean all. Here is what I
see when the page runs:
- Colors, fonts are gone.
- When page first displays there are dbl verticle arrows seperating
all of the level two lists, which are displayed down the left side of
the page. Pointing to these arrows removes them and hides the list
-Then when pointing to the menu items, the level two lists are popping
up in wierd places on the screen along with empty white boxes
elsewhere on the screen.

sigh...
Does anyone have any idea about this behavior?

Thanks
Jeff
 
M

Mark Rae [MVP]

Does anyone have any idea about this behavior?

It's difficult to tell without seeing your markup, but it sounds as if your
menu has lost the link to its stylesheet, maybe due to incorrect absolute
references...

Bear in mind that document element names will change in a MasterPage /
content page scenario - if your stylesheet is referring to element names,
that will almost certainly be the problem...
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

Yes I agree with Mark. Check your CSS reference. I bet the path is messed
up from some pages.
Think about using absolute paths or dynamic paths or using the tilde ~

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
http://iPhonePlaza.net
 
J

Jeff User

I have not even set a style sheet for the menu.
I set a few colors in the propeties window.
Here is all the master and test code:

Main.Master:

<%@ Master Language="C#" AutoEventWireup="true"
CodeBehind="Main.master.cs" Inherits="MMS.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


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

<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
<asp:Menu ID="Menu1" runat="server" BackColor="#E0E0E0"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal" BorderColor="#C0FFFF"
ForeColor="#00C0C0">
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1"
runat="server" EnableViewState="False" ShowStartingNode="False" />
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>


ContentTester.aspx:

<%@ Page Language="C#" MasterPageFile="~/Main.Master"
AutoEventWireup="true" CodeBehind="ContentTester.aspx.cs"
Inherits="MMS.ContentTester" Title="Untitled Page" %>


Thanks again
Jeff
 
G

George Ter-Saakov

Yea, it did. He replied earlier.
kudos to Google when I had that problem I found solution in a minutes.


George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top