Creation of menu for asp.net applicatio

Posted by Sankettt under ASP.NET on 10/9/2011 | Points: 10 | Views : 3174 | Status : [Member] | Replies : 5
How do i create a customized horizontal menu or get a ready made menu for asp.net application?
And along with it it should have sub menus as well.

sankettt


Responses

Posted by: Kasibabu on: 10/9/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Sankettt

Creation of menu for asp.net application


i am giving basic code to create menu in asp.net we can customize the menu with the help of Autoformat Properties.
like

<DynamicHoverStyle BackColor="#990000" ForeColor="White" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" /> change them accouding to our desing requrements otherwise we can use stylesheet also.with the Propertie of Menu control CssClass="classname"
menu control is available in navigation tab.

this is basic code

<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#990000" Orientation="Horizontal" StaticSubMenuIndent="10px">
<DynamicHoverStyle BackColor="#990000" ForeColor="White" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<Items>
<asp:MenuItem Text="HOME" Value="HOME">

</asp:MenuItem>
<asp:MenuItem Text=".NET" Value=".NET" >
<asp:MenuItem Text="FRAMEWORK" Value="FRAMEWORK"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="ADO.NET" Value="ADO.NET">
<asp:MenuItem Text="CONNECTION ORIENTED" Value="CONNECTION ORIENTED">
</asp:MenuItem>
<asp:MenuItem Text="DISCONNECTED ORIENTED" Value="DISCONNECTED ORIENTED">
</asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="ASP.NET" Value="ASP.NET">
<asp:MenuItem Text="ASP.NET OBJECTS" Value="ASP.NET OBJECTS">
<asp:MenuItem Text="APPLICATION" Value="APPLICATION"></asp:MenuItem>
<asp:MenuItem Text="REQUEST" Value="REQUEST"></asp:MenuItem>
<asp:MenuItem Text="RESPONSE" Value="RESPONSE"></asp:MenuItem>
</asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="SQLSERVER" Value="SQLSERVER"></asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticSelectedStyle BackColor="#FFCC66" />
</asp:Menu>

by default menu control orientation="Verticle". make as Horizontal to get Horizontal menu do like above

if it is helps make it as answer

Regards,
Kasi babu

Sankettt, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sankettt on: 10/9/2011 [Member] Starter | Points: 25

Up
0
Down
its not working.!
is this code compatible with visual studio 2008 ?
DynamicHoverStyle not supported.
and same goes for all the other tags.

sankettt

Sankettt, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 10/12/2011 [Member] Starter | Points: 25

Up
0
Down
Did u tag inside <items>

even if not try using vs 2010

Sankettt, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 10/14/2011 [Member] Starter | Points: 25

Up
0
Down
hi....Try this below linkto create asp.net menu with css
http://vbdotnetaddict.blogspot.com/2011/06/creating-aspnet-menu-control-using-css.html

Sankettt, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mallory on: 10/19/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

I am creating an ASP.Net application in VS2008. I would like to create a horizontal menu bar at the top. The values of this menu bar should be dynamic. By dynamic i mean that we should be able to add new values or remove the existing values from the menu bar.

Any suggestions as to how can we implement this? Any small code snippet is welcome.

Thanks in advance.

online email marketing

[url="http://www.thecliffwebsolutions.com/"]web solution india[/url]

Sankettt, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response