Click here to Skip to main content
15,883,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,


Am Creating a Website in Asp.net using C# and SqlServer 2005.

How to create MENUS in Asp.net such as

Home , aboutus, Services,Our values, Our Mission, Contact us.


I need Excellent Menus....to look a website a good look.

Please help me, Thanks in Advance.
Posted
Comments
Tamil Selvan K 3-Jul-12 1:52am    
you should see similar kind of menu when you create a ASP.NET Web Application from visual studio template itself.Using that you have to apply CSS to customize it.

Do some research on your part too. Don't just ask for everything.

Check the following:
MSDN: ASP.NET Menu Control Overview[^]
Dynamic Menu control in ASP.NET using jQuery[^]
 
Share this answer
 
Comments
member60 3-Jul-12 6:48am    
+5
Sandeep Mewara 4-Jul-12 15:30pm    
Thanks.
The ASP.NET Menu control allows you to develop both statically and dynamically displayed menus for your ASP.NET Web pages.
You can configure the contents of the Menu control directly in the control, or you can specify the contents by binding the control to a data source.

Without writing any code, you can control the appearance, orientation, and content of an ASP.NET Menu control.

In addition to the visual properties exposed by the control, the control supports ASP.NET control skins and themes.

For more information on skins and themes, see ASP.NET Themes and Skins Overview[^].

Also check out: Menu Control Overview[^]

Refer a CP Article on same:
ASP.NET Horizontal Menu Control[^]

You can use JavaScript in menu, have look on another CP Article:
ASP.NET Dynamic XML Web Menu Control based on JavaScript[^]

Lot of articles on same, have a look at CodeProject Search[^]
 
Share this answer
 
v2
Comments
member60 3-Jul-12 6:48am    
+5
 
Share this answer
 
Asp have own menu control that u can use. and u can also apply CSS on that which give attractive look on menus. other option is that make a user control file and put a jquery menu or javascript menu. and register that user control on ur default page or master page.
 
Share this answer
 
Hi ...

Please see the below code


ASP.NET
<asp:menu id="menuMain" runat="server" style="z-index: 100; left: 19px; position: absolute; top: 296px; background-color: transparent;" backcolor="InactiveCaptionText" dynamichorizontaloffset="2" font-names="Verdana" font-size="0.8em" forecolor="#284E98" staticsubmenuindent="10px" tabindex="2" xmlns:asp="#unknown">
                        <items>
                        <asp:menuitem text="User Details" value="User Information">
                                <asp:menuitem navigateurl="~/Adduserlist.aspx" text="New User Creation">
                                  ></asp:menuitem>
                                  <asp:menuitem navigateurl="~/Adduserlogin.aspx" text=" User Login Creation">
                                  ></asp:menuitem>
                                
                            </asp:menuitem>
                            <asp:menuitem text="TASK" value="task Information">
                                <asp:menuitem navigateurl="~/Createtaskt.aspx" text="Create a TASK">
                                    Value="Create a New Project"></asp:menuitem>
                                
                            </asp:menuitem>
                            <asp:menuitem text="Task Status" value="Task Status">
                                <asp:menuitem navigateurl="~/Viewstatus.aspx" text="View Status" value="Create a Task">
                                </asp:menuitem>
                                
                            </asp:menuitem>
                            <asp:menuitem text=" Task Report" value="Task Report">
                                <asp:menuitem navigateurl="~/GetReport.aspx" text="Get Report">
                                    Value="Create a new Employee"></asp:menuitem>
                               
                            </asp:menuitem>
                            
                            <asp:menuitem text=" Daily Report" value="Daily Report">
                                <asp:menuitem navigateurl="~/Dailydetailreport.aspx" text="Daily Report">
                                    Value="Create a new Employee"></asp:menuitem>
                               
                            </asp:menuitem>
                            
                        </items>
                        <staticmenuitemstyle horizontalpadding="5px" verticalpadding="2px" />
                        <dynamicmenustyle backcolor="#B5C7DE" />
                        <staticselectedstyle backcolor="#507CD1" />
                        <dynamicselectedstyle backcolor="#507CD1" />
                        <dynamicmenuitemstyle horizontalpadding="5px" verticalpadding="2px" />
                        <statichoverstyle backcolor="InactiveCaption" forecolor="InactiveCaptionText" />
                        <dynamichoverstyle backcolor="InactiveCaption" forecolor="InactiveCaptionText" />
                    </asp:menu>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900