Solved

Building a web forms menu using VS 2012

Posted on 2013-05-17
3
570 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 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