Building a web forms menu using VS 2012

Posted on 2013-05-17
Last Modified: 2013-05-26
I need guidance for building a nested menu using VS 2012 web forms.

Which is recommended:

                    <ul id="menu">
                        <li><a runat="server" href="~/">Home</a></li>
                        <li><a runat="server" href="~/About.aspx">About</a></li>
                        <li><a runat="server" href="~/Contact.aspx">Contact</a></li>


  <asp:menu id ="NavigationMenu" runat="server"
                staticdisplaylevels="2" staticsubmenuindent ="2" aria-orientation="horizontal"
                font-names="Arial,Gill Sans" width="545px" pathseparator="," font-size="12 px"
                staticmenuitemstyle-itemspacing="10" datasourceid="sitemapdatasource1"
               DynamicMenuItemStyle-ItemSpacing="2" DynamicMenuStyle-BackColor="#999999"
               DynamicMenuStyle-BorderColor="Black" DynamicMenuStyle-BorderStyle="Solid"
              DynamicMenuStyle-BorderWidth="1 px" DynamicMenuStyle-ForeColor="Black"
              DynamicHoverStyle-BackColor="Yellow" DynamicSelectedStyle-BackColor="Lime"
              StaticMenuStyle-BackColor="#999999" StaticMenuStyle-ForeColor="Blue"
              StaticMenuStyle-BorderStyle="Solid" StaticMenuStyle-BorderWidth="1 px"
              StaticMenuStyle-BorderColor="Black" StaticSelectedStyle-BackColor="Yellow"
              StaticMenuItemStyle-ForeColor="Black" StaticHoverStyle-BackColor="Yellow"
              StaticHoverStyle-BorderColor="Black" StaticHoverStyle-BorderStyle="Solid"
              StaticHoverStyle-BorderWidth="1 px" StaticHoverStyle-ForeColor="Black"
              StaticSelectedStyle-ItemSpacing="10 px" StaticMenuItemStyle-BorderStyle="Solid"
              StaticMenuItemStyle-BorderWidth="1 px" StaticMenuItemStyle-BorderColor="White"
              DynamicMenuItemStyle-ForeColor="Black" DynamicHorizontalOffset="16" Height="32px"
               Font-Bold="True" StaticMenuItemStyle-Height="32 px" >
            <staticmenustyle backcolor="White"
                bordercolor="#FFFFCC" Font-Size="14 px" >

            <StaticSelectedStyle ItemSpacing="10px" BackColor="Yellow"></StaticSelectedStyle>
            <StaticMenuItemStyle ItemSpacing="10px" HorizontalPadding="4px"
                   BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" ForeColor="Black"
            <DynamicHoverStyle BackColor="Yellow"></DynamicHoverStyle>
            <DynamicMenuStyle HorizontalPadding="0px" BackColor="#999999" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" ForeColor="Black"></DynamicMenuStyle>
            <DynamicSelectedStyle BackColor="Lime"></DynamicSelectedStyle>
            <DynamicMenuItemStyle ItemSpacing="2px" ForeColor="Black" Font-Bold="False"
                   Font-Names="Tahoma" Font-Size="14px"></DynamicMenuItemStyle>
            <StaticHoverStyle BackColor="Yellow" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" ForeColor="Black"></StaticHoverStyle>

Question by:Dovberman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

worm-getter earned 300 total points
ID: 39175177

Author Comment

ID: 39175331
The link seems useful. I will do the walkthrough and try both menu processes.

Thank you.

Author Closing Comment

ID: 39197944
Thank you.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question