MenuItem Styles not rendering

Last post 06-18-2008 9:35 AM by dallas_princess. 1 replies.

Sort Posts:

  • Confused [*-)] MenuItem Styles not rendering

    06-17-2008, 3:52 PM

    Hello ,

    I have a menu control in the master page.

    The issue is , Menu control's Styles are not rendered when viewed. The same source code works on my machine and a test server.

    But , i am having issues when the code is deployed on a Staging server.

    Here is code for my Master page :

    "C#" AutoEventWireup="true" CodeBehind="LandsafeDefault.Master.cs" Inherits="LandSafe.DDR.Web.Site3" %>

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Master.cs" Inherits="Web.Site3" %>

    <!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" id="PageHeader">

    <title> Default Document Repository</title>

    <link href="css/Stylesheet.css" rel="stylesheet" type="text/css" />

    <link href="css/headerMain.css" rel="stylesheet" type="text/css" />

    <link href="css/styles.css" rel="stylesheet" type="text/css" />

    </head>

    <body style="margin: 0px; ">

    <div style="width: 100px; position: absolute; height: 70px">

    <img src="images/topleft.gif" alt="" style="height: 70px" /></div>

    <div style="left: 450px; background-image: url(images/topspacer.gif); width: 400px;

    background-repeat: repeat-x; position: absolute; top: 0px; height: 70px">

    </div>

    <div style="top: 70px; width: 850px; position: absolute; height: 5px; left: 0px; border-top: #cccccc thick solid;">

    </div>

    <form style="position: absolute; top: 108px; width: 850px; left: 0px;" id="form1" runat="server">

    <div style="background-image: url(images/menuBG.gif); width: 850px; position: absolute;

    height: 25px; top: -32px; border-top-style:solid; border-top-color:#CB3E00; border-top-width: thin;">

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

    Width="300px" Font-Names="Verdana" Font-Size="Small" ForeColor="#5F7786" Height="20px"

    OnMenuItemClick="Menu1_MenuItemClick" DataSourceID="AttorneyMenuXmlDataSource" OnMenuItemDataBound="Menu1_MenuItemDataBound">

    <LevelMenuItemStyles>

    <asp:MenuItemStyle Font-Underline="False" HorizontalPadding="20px" ItemSpacing="20px" />

    </LevelMenuItemStyles>

    <StaticHoverStyle ForeColor="#F7B00A" />

    <DataBindings>

    <asp:MenuItemBinding DataMember="MenuItem" SeparatorImageUrlField="SeparatorImageUrl"

    TextField="Text" ToolTipField="ToolTip" ValueField="Value" />

    </DataBindings>

    <StaticSelectedStyle Font-Bold="True" ForeColor="#F7B00A" />

    <DynamicMenuStyle BackColor="#F7F8F9" CssClass="MyMenuItem" HorizontalPadding="20px"

    Width="140px" />

    </asp:Menu>

    </div>

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

    </asp:ContentPlaceHolder>

     

    </form>

    <asp:XmlDataSource ID="AttorneyMenuXmlDataSource" runat="server" DataFile="~/Menu.xml" XPath="/Menu/AttorneyMenu/Items/MenuItem">

    </asp:XmlDataSource>

    <asp:XmlDataSource ID="AbstractorMenuXmlDataSource" runat="server" DataFile="~/Menu.xml" XPath="/Menu/AbstractorMenu/Items/MenuItem">

    </asp:XmlDataSource>

    </body>

    </html>

    ---------------------------------------------------------------------------------------------------

    All the CSS is showing up for the rest of the page. Only the Menu Item Styles are not showing.

    Environment : .NET 2.0 SP1 , Win 2003 server Ent Edition , SP1  

    Any help is appreciated.

    Thanks.
      

     

  • Re: MenuItem Styles not rendering

    06-18-2008, 9:35 AM

    Anyone pls ?

Page 1 of 1 (2 items)