Solved

Building a web forms menu using VS 2012

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

Which is recommended:

<nav>
                    <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>
                    </ul>
                </nav>

OR

  <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"
              StaticMenuItemStyle-HorizontalPadding="4"
              DynamicMenuItemStyle-ForeColor="Black" DynamicHorizontalOffset="16" Height="32px"
               Font-Bold="True" StaticMenuItemStyle-Height="32 px" >
                           
            <staticmenustyle backcolor="White"
                forecolor="Black"
                borderstyle="None"
                borderwidth="0"
                bordercolor="#FFFFCC" Font-Size="14 px" >
            </staticmenustyle>

            <StaticSelectedStyle ItemSpacing="10px" BackColor="Yellow"></StaticSelectedStyle>
            <StaticMenuItemStyle ItemSpacing="10px" HorizontalPadding="4px"
                   BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" ForeColor="Black"
                   Font-Size="Medium"></StaticMenuItemStyle>
            <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>

           </asp:menu>
0
Comment
Question by:Dovberman
[X]
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
3 Comments
 
LVL 6

Accepted Solution

by:
worm-getter earned 300 total points
ID: 39175177
0
 

Author Comment

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

Thank you.
0
 

Author Closing Comment

by:Dovberman
ID: 39197944
Thank you.
0

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 asp.net 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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
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