Solved

Building a web forms menu using VS 2012

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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