how to use menu tool in asp.net using c#. ( i need to use menu in all page without using masterpage . my code is
form design
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MenuControl.aspx.cs" Inherits="MenuControl" %>
body
{
font-family: Arial;
font-size: 10pt;
}
.main_menu
{
width: 100px;
background-color: #8AE0F2;
color: #000;
text-align: center;
height: 30px;
line-height: 30px;
margin-right: 5px;
}
.level_menu
{
width: 110px;
background-color: #000;
color: #fff;
text-align: center;
height: 30px;
line-height: 30px;
margin-top: 5px;
}
.selected
{
background-color: #852B91;
color: #fff;
}
OnMenuItemDataBound="OnMenuItemDataBound">
( i need to do the menu in all the page as same without using masterpage in asp.net using c#)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Khan Abrar AhmedRank #778 · 3K reputationPosted Apr 6, 2014, 2:53 AM EDT
Create a user control on your application and add the menu control in it and use the user control on each page.
Munesh SharmaRank #174 · 13.9K reputationPosted Apr 6, 2014, 5:14 AM EDT