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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Munesh SharmaPosted Apr 6, 2014, 9:14 AM
Khan Abrar AhmedPosted Apr 6, 2014, 6:53 AM
Create a user control on your application and add the menu control in it and use the user control on each page.