Wednesday, 6 March 2013

Creating ASP.NET Menu control


 Resource:

  • http://msdn.microsoft.com/en-us/library/ecs0x9w5(v=vs.80).aspx

Code:
<div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                    <Items>
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="Admin"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                    </Items>
                </asp:Menu>
            </div>


No comments:

Post a Comment