Click here to Skip to main content
12,957,071 members (58,360 online)
Rate this:
Please Sign up or sign in to vote.
See more:

i have design master page placed menustrip set orientation in horizontal mode but still while view in browser it shows vertical menu can you please help me out my source code is as follows
<asp:ContentPlaceHolder id="head" runat="server">
    <form id="form1"  runat="server">
    <div align="center">
        style="font-family: 'Arial Narrow'; color: #FF0000; background-color: #FFFF00">My new web site<br />
        <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" StaticSubMenuIndent="10px">
                <asp:MenuItem NavigateUrl="~/Default.aspx" Text="HOME" Value="HOME">
                <asp:MenuItem NavigateUrl="~/About.aspx" Text="ABOUT" Value="ABOUT">
                <asp:MenuItem NavigateUrl="~/Contact.aspx" Text="CONTACT" Value="CONTACT">
                <asp:MenuItem NavigateUrl="~/Change.aspx" Text="CHANGE" Value="CHANGE">
 <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
Posted 3-Sep-12 21:53pm
Updated 3-Sep-12 22:08pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

Use this valuable thread!

ASP.NET Horizontal Menu Control[^]

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

you have put your content place holder outside of your form and then close it before you have closed your form

try using this code

i copied your code and tried to run it but there were issues cos it was very neat

 <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
     <asp:Menu ID="Menu2" runat="server" Orientation="Horizontal">
         <asp:MenuItem NavigateUrl="~/Default.aspx" Text="HOME" Value="HOME"></asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/About.aspx" Text="About" Value="About">
 <asp:MenuItem NavigateUrl="~/Contact.aspx" Text="CONTACT" Value="CONTACT"></asp:MenuItem>
 <asp:MenuItem NavigateUrl="~/Change.aspx" Text="CHANGE" Value="CHANGE"></asp:MenuItem>          </Items>
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

try site map for thispurpose.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,994
CHill60 3,550
Maciej Los 3,312
ppolymorphe 2,170
Jochen Arndt 1,973

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 5 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100