Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Building a web forms menu using VS 2012

Posted on 2013-05-17
3
Medium Priority
?
593 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 1200 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

Major Serverless Shift

Comparison of major players like AWS, Microsoft Azure, IBM Bluemix, and Google Cloud Platform

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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

715 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