Submenu display problem

Last post 05-16-2008 6:03 AM by ashishsuman4u. 13 replies.

Sort Posts:

  • Submenu display problem

    05-06-2008, 5:19 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

    hi all,

    I am developing a multilevel marketing site in asp.net 2.0. I have used the sitemap control as a source of menuitems and sub items. there is a display problem in the menu control. I have tried every thing including googling but still the problem exist. please check www.thanksadpx.com . there you will see that when we hover the about us, products and login menu item, sub menu doesnt appear. do any one know whats the solution is?

    the sitemap is as follows

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
        <siteMapNode title="Mysitemap">
        <siteMapNode title="Home" url="~/Default.aspx"></siteMapNode>
            <siteMapNode title="About Us" >
                <siteMapNode url="~/About Us.aspx" title="Overview" />
                <siteMapNode url="~/Download.aspx" title="Downloads" />
            </siteMapNode>
            <siteMapNode title="Products">
                <siteMapNode title="Induction Cooker" url="~/Induction_Cooker.aspx"/>
                <siteMapNode title="Wrist Watch" url="~/Wrist_Watch.aspx"/>
            </siteMapNode>
            <siteMapNode title="Business Plan" url="~/Buiness_Plan.aspx"></siteMapNode>
            <siteMapNode title="Terms &amp; Conditions" url="~/Terms_Condition.aspx"></siteMapNode>
            <siteMapNode title="News &amp; Events" url ="~/News_Events.aspx"></siteMapNode>
            <siteMapNode title="Join Us" url="~/Join_Us.aspx"></siteMapNode>
            <siteMapNode title ="Contact Us" url="~/Contact_Us.aspx"></siteMapNode>
            <siteMapNode title="Login">
                <siteMapNode title="CMS Login" url="~/CMS_Login.aspx"/>
                <siteMapNode title="Employee Login" url="~/Employee_Login.aspx"/>
            </siteMapNode>
        </siteMapNode>
    </siteMap>
     

    thanks in advance

    ashish 

    Filed under:
  • Re: Submenu display problem

    05-06-2008, 5:23 AM

    It would be wise to post the relevant portions of your sitemap file... :)

    If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
  • Re: Submenu display problem

    05-06-2008, 5:38 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

     thanks for your reply david

    I have posted the sitemap for your review. 

  • Re: Submenu display problem

    05-06-2008, 11:32 AM

    ashishsuman4u:

     thanks for your reply david

    I have posted the sitemap for your review. 

    Confused me for a moment, you edited your original post. :)

    The sitemap file looks good to me. That's usually the problem.

    Post the menu control on the aspx page.  Does it have a runat="server" in it?

     

    If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
  • Re: Submenu display problem

    05-06-2008, 12:46 PM
    • Loading...
    • in2minds
    • Joined on 11-13-2007, 9:11 PM
    • Posts 35

    hi,

    your sitemap seems to be ok, can you post your master page if you are using one and are you using roles? to hide/display menu? if Yes then do post the web.config file

     

    Thanks

    MM

  • Re: Submenu display problem

    05-07-2008, 3:00 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

    hi guys....I have used the master page in my application which is as under- 

     <%@ Master Language="C#" AutoEventWireup="true" CodeFile="home.master.cs" Inherits="home0" %>

    <!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>Website Master</title>
        <link href="home.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div id="wrapper">
          
        <div id="header">

        <asp:ImageButton ID="logobutton" runat="server" ImageUrl="~/Images/logo.gif"
                PostBackUrl="~/Default.aspx" />
            <asp:Image ID="name" runat="server" ImageUrl="~/Images/name1.gif" /><br />
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="778" height="150">
              <param name="movie" value="Images/thanks.swf" />
              <param name="quality" value="high" />
              <param name="bgcolor" value="#C4000F" />
              <embed src="Images/thanks.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="778" height="150"></embed>
            </object>
              <asp:SiteMapDataSource ID="nav" runat="server" SiteMapProvider="myMenuSiteMap" ShowStartingNode="False" StartingNodeOffset="-1" />
            <asp:Menu ID="mastermenu" runat="server" BackColor="#FFFBD6" DataSourceID="nav" DynamicHorizontalOffset="2"
                Font-Names="Verdana" Font-Size="1em" ForeColor="#990000" Height="20px" Orientation="Horizontal"
                SkipLinkText="Skip" StaticSubMenuIndent="10px" Width="778px">
                <StaticSelectedStyle BackColor="#FFCC66" />
                <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
                <DynamicMenuStyle BackColor="#FFFBD6" />
                <DynamicSelectedStyle BackColor="#FFCC66" />
                <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                <StaticHoverStyle BackColor="#990000" ForeColor="White" />
                <StaticItemTemplate>
                    <%# Eval("Text") %>
                </StaticItemTemplate>
                <DynamicItemTemplate>
                    <%# Eval("Text") %>
                </DynamicItemTemplate>
            </asp:Menu>
             
            </div>  
       
        <div id="content">
        <div id="left">
                    <asp:ContentPlaceHolder ID="centercontent" runat="server">
                    </asp:ContentPlaceHolder>
        </div>
        <div id="right">
                    <div class="sidebarcontainer">
            <asp:Login ID="clientlogin" runat="server" BackColor="#E3EAEB" BorderColor="#E6E2D8"
                BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                Font-Size="0.8em" ForeColor="#333333" Height="175px" LoginButtonText="Login"
                TextLayout="TextOnTop" TitleText="Client Login" Width="175px">
                <TextBoxStyle Font-Size="0.8em" />
                <LoginButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px"
                    Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
                <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                <TitleTextStyle BackColor="#C4000F" Font-Bold="True" Font-Size="1.4em" ForeColor="White" Font-Names="Verdana" />
            </asp:Login>
            </div>       
            <div id="news">
            <h2>News & Events</h2><marquee id="news&events" direction="up" loop="true" scrolldelay="100" height="87%" onmouseover="this.stop()" onmouseout="this.start()"><asp:label id="newslabel" runat="server" Width="175px" Height="300px" CssClass="newslabel"><p>Thanks Adpx Group of Companies is going to launch its MLM scheme in the market soon</p></asp:label></marquee>
             </div>
                   </div>

        </div>
      
        <div id="footer">
        <div id="bottom_image">
        Copyright: &copy Thanks Adpx Group Of Companies<br />
        Designed and Developed By: <a href="http://www.xploresoftwaresystems.com">Xplore Software Systems</a>
        </div>
        </div>
         
        </div>
        </form>
    </body>
    </html>

    thanks 

  • Re: Submenu display problem

    05-09-2008, 2:41 AM

    Hi ashishsuman4u  , 

    We had a test on our local by using your code and the sitemap, but we did not repro your problem. But when we opened the webpage by IE, www.thanksadpx.com , we noticed there is some javascript error at the foot of the browser.

    So, maybe the javascript cause your problem,  or it's you css, you can try to remove the class of the divs : <div id="wrapper"> and  <div id="header">, in order to see whether the submenu can display.

    Hope it helps.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Yours sincerely,
    Amanda Wang
    Microsoft Online Community Support
  • Re: Submenu display problem

    05-10-2008, 1:37 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

    Hi Amanda,

    Thanks for your reply. I have checked all the code but havent got any problem in the code. Also I forgot to say earlier that we are getting this problem only when we upload our application on the hosting server. this problem doesnt appear while development. thats why you are not getting that repro. 

  • Re: Submenu display problem

    05-11-2008, 10:12 PM
    Answer

    Hi,

    The cause of the problem seemly is in IIS of refering the resource file.

    You can try to not verify the axd file in the IIS, make on of verify that file exists is unchecked in the add/edit application extension Mapping window.

    Try to refer the below screen.

    Hope it helps

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Yours sincerely,
    Amanda Wang
    Microsoft Online Community Support
  • Re: Submenu display problem

    05-12-2008, 10:56 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

    hi Amanda,

    As I told earlier the problem only exist when I upload my application on the hosting server. I get no error while development. its working there perfectly.
     

  • Re: Submenu display problem

    05-13-2008, 4:39 AM

    Hi,

    ashishsuman4u:
    As I told earlier the problem only exist when I upload my application on the hosting server. I get no error while development. its working there perfectly.

    Did you check the option of verify that file exists of the iis on the host server? Please make sure the option that  it is unchecked.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Yours sincerely,
    Amanda Wang
    Microsoft Online Community Support
  • Re: Submenu display problem

    05-13-2008, 5:18 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

     Hi Amenda,

    I have checked the hosting server's control panel. There is no way to check whether that check box is checked or unchecked. But many other applications are running from the same host server so I dont think its a problem.

    when I debug the application I found there is some problem in the bold lines of the following code. but I dont know whats the problem is.

    <asp:Menu ID="mastermenu" runat="server" BackColor="#FFFBD6" DataSourceID="nav" DynamicHorizontalOffset="2"
                Font-Names="Verdana" Font-Size="1em" ForeColor="#990000" Height="20px" Orientation="Horizontal"
                SkipLinkText="" StaticSubMenuIndent="10px" Width="778px" StaticEnableDefaultPopOutImage="False">
                <StaticSelectedStyle BackColor="#FFCC66" />
                <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
                <DynamicMenuStyle BackColor="#FFFBD6" />
                <DynamicSelectedStyle BackColor="#FFCC66" />
                <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                <StaticHoverStyle BackColor="#990000" ForeColor="White" />
                <StaticItemTemplate>
                    <%# Eval("Text") %>
                </StaticItemTemplate>
                <DynamicItemTemplate>
                    <%# Eval("Text") %>
                </DynamicItemTemplate>

                <DataBindings>
                    <asp:MenuItemBinding DataMember="SiteMapNode" NavigateUrlField="Url" TextField="Title" />
                </DataBindings>
            </asp:Menu>
              

    thanks for giving such gr8 attention. 

  • Re: Submenu display problem

    05-13-2008, 6:26 AM

    Hi,

    I will not agree with you, if  the problem is in the menu's DynamicItemTemplate and StaticItemTemplate, this problem also appears while development.

    If you persiste in your opinion, you can try to use linkbutton in the template,like below:

    <DynamicItemTemplate>
        <asp:LinkButton runat="server"  PostBackUrl='<%# Eval("NavigateUrl") %>' Text='<%# Eval("Text") %>'></asp:LinkButton>
    </DynamicItemTemplate>
    <StaticItemTemplate>
        <asp:LinkButton runat="server"  PostBackUrl='<%# Eval("NavigateUrl") %>' Text='<%# Eval("Text") %>'></asp:LinkButton>
    </StaticItemTemplate>

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Yours sincerely,
    Amanda Wang
    Microsoft Online Community Support
  • Re: Submenu display problem

    05-16-2008, 6:03 AM
    • Loading...
    • ashishsuman4u
    • Joined on 05-06-2008, 5:10 AM
    • New Delhi
    • Posts 7

    Hi Amanda,

    You were right.I had talked to the hosting service and they found the same error you were talking about. My problem is now solved.Thanks for your help.

    Happy Coding,

    Ashish