CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/5/2006 1:47:44 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 18 Views: 129 Favorited: 0 Favorite
19 Items, 1 Pages 1 |< << Go >> >|
Maleki
Asp.Net User
Horizontal submenu in asp.net 2.09/5/2006 1:47:44 PM

0

I'm building a site that requries a horizontal submenu.  Is it possible to configure the existing control in asp.net 2.0 to do that?  If not can anyone tell me of a control that would do that?

Thanks in advance,

M
vivek_iit
Asp.Net User
Re: Horizontal submenu in asp.net 2.09/5/2006 8:05:43 PM

0

Hi,

You can use the ASP.NET menu control with Orientation property set to horizontal.

Hope this helps,

Vivek


MVP, ASP.NET || My Website || Blog || Articles

Please mark the most helpful reply/replies as "Answer".
Maleki
Asp.Net User
Re: Horizontal submenu in asp.net 2.09/6/2006 1:45:41 PM

0

Actually I'm looking for a horizontal submenu.  The top part was easy.  I'm actually playing around with a menu by obout called EasyMenu.  It looks like it'll do everything I need.  It's free too!  Imagine that.  Anyway if anyone knows how to make the default ASP.Net menu control have horizontal submenus then post the answer here.  Otherwise you guys should check out EasyMenu by obout.  It's not the most userfriendly for programmers but once you get the hang of it it seems pretty cool!  It's in the controls section of this site.  

M
vivek_iit
Asp.Net User
Re: Horizontal submenu in asp.net 2.09/6/2006 6:58:03 PM

0

Thanks for the Easy Menu option. But alas! its free for pesonal use only.

Anyways, you can try having horizontal sub menus by customizing the way ASP.NET menu control renders using CSS Control Adapter Toolkit. I have not used it for horizontal sub menus but i believe that must be possible. See this post and download link:

http://weblogs.asp.net/scottgu/archive/2006/05/02/CSS-Control-Adapter-Toolkit-for-ASP.NET-2.0-.aspx

http://www.asp.net/cssadapters/

Hope this helps,

Vivek


MVP, ASP.NET || My Website || Blog || Articles

Please mark the most helpful reply/replies as "Answer".
Maleki
Asp.Net User
Re: Horizontal submenu in asp.net 2.09/7/2006 2:01:52 PM

0

I know but if it works out I think I'll buy it.  (actually get my client to buy it... :) )

I've tried working with the CSS adapter toolkit and I've seen that article.  I've yet to be able to create a horizontal submenu for it yet. :(  

Thanks for trying.  If I get it to work I'll post the solution here.  (anyone else interested in this?)

M
kbghost
Asp.Net User
Re: Horizontal submenu in asp.net 2.012/5/2006 6:42:32 PM

0

has there been any solution for this? I'm surprised that such a common requirement would be so difficult to implement using the .net controls.  Tab navigation with horizontal submenus is a fairly common theme amongst webpages
rfurdzik
Asp.Net User
Re: Horizontal submenu in asp.net 2.012/5/2006 11:12:34 PM

0

I have tried CSS Adapter toolkit for that. the final conclusion was that it requires some changes to Java Script and CSS.

Never finished that, found more simple solution , not perfect, but works now. Multiple XML datasources been created... Each main menu item has a seperate XML file...


Rafal
Zikbay.com - The Best Free Online Classifieds


DNN Direct
aaava
Asp.Net User
Re: Horizontal submenu in asp.net 2.03/10/2007 1:21:33 PM

0

Why does MIcrosoft not include this as a control?  It's a glaring hole, IMO.  There is no code offered by any enterprising programmer for horizontal css menus and submenus?  Could someone point out a link to one with source that doesn't cost money?  I wouldn't mind paying the money--it's that normally those who charge it, in a rationalization for the money, but everything including the kitchen sink in it.  I simply want one that shows a simple dropdown menu and submenu.

Thanks if anyone can show me a link.

kbghost
Asp.Net User
Re: Horizontal submenu in asp.net 2.03/12/2007 4:23:21 PM

0

for this problem, I eventually wrote my own custom control to generate the unordered lists html that I needed for this.  I then used css to style the tab menu to my liking.  Unless you can find a better solution, this was one way to solve the problem.
NashUK
Asp.Net User
Re: Horizontal submenu in asp.net 2.03/12/2007 5:07:22 PM

0

Do you have an example of your CSS menu? I would like to create my own CSS based .Net control using DB access but before I start would be nice to see if anyone has done it before?

I'm interested specifically in the VB to search through something (like a dataset) to look for parent child relationships for the menu.

 
Thanks,

 

Nasha
 

kbghost
Asp.Net User
Re: Horizontal submenu in asp.net 2.03/16/2007 3:32:56 PM

0

wait, I'm sorry. I'm kind of unclear on what you're l;ooking for.  Are you loking for the html code rendered by the custom control? It would render something to this effect.

<div class="topNav">
<ul>
<li class="selected"><a href="http://forums.asp.net/AddPost.aspx?PostID=1616737#">One</li>
<li><a href="http://forums.asp.net/AddPost.aspx?PostID=1616737#">Two</li>
</ul>
 </div>

<div class="subNav">
<ul>
<li class="selected"><a href="http://forums.asp.net/AddPost.aspx?PostID=1616737#">One</li>
<li><a href="http://forums.asp.net/AddPost.aspx?PostID=1616737#">Two</li>
</ul>
 </div>

 I'm not the best at all this and I may be missing some stuff, but this should get you somewhat started.  Once your custom control renders this html, you are able to take this html code and use css to style menus

slasi.net
Asp.Net User
Re: Horizontal submenu in asp.net 2.03/23/2007 7:19:20 PM

0

vivek_iit:

Thanks for the Easy Menu option. But alas! its free for pesonal use only.

Anyways, you can try having horizontal sub menus by customizing the way ASP.NET menu control renders using CSS Control Adapter Toolkit. I have not used it for horizontal sub menus but i believe that must be possible. See this post and download link:

http://weblogs.asp.net/scottgu/archive/2006/05/02/CSS-Control-Adapter-Toolkit-for-ASP.NET-2.0-.aspx

http://www.asp.net/cssadapters/

Hope this helps,

Vivek

 

Hi ,

I am looking for a way to have Horizontal menu that is openning to Horizontal Submenu.

on the link you have here i dont see in the examples the possibility to have horizontal sub menu.(it is open to vericale menu)

 is anybody can please advice how should i have horizontal submenu ?

 

thanks for the help

 

Ori

eron19
Asp.Net User
Re: Horizontal submenu in asp.net 2.03/31/2007 10:13:07 PM

0

yeah i need to know how to do this too :/ HELP! having a hard time w/twocolorsmenu

"Only when we are no longer afraid do we begin to live" -D. Thompson // f bush.

-----------

"No man succeeds without a good woman behind him. Wife or mother, if it is both, he is twice blessed indeed." -Harold MacMillan

lividsquirrel
Asp.Net User
Re: Horizontal submenu in asp.net 2.09/22/2007 3:27:59 PM

0

Looking at the source, it seems that the reason the sub-menu items display in rows is that they are specifically rendered as "tr" elements within a table.  The only, very sad, hack I've found around this so far is to apply a style to all "tr" elements in your page that specify "display: inline" as a style.  This will at least cause your sub-menu to appear horizontally.  However, this of course means that you will need to apply a more specific style using a class or id to all other tr elements in your site to revert their rendering back to the natural state of "display: block".  If you try to use a vertically-oriented menu control on a page using the same stylesheet , you run into problems because the Asp:menu control doesn't allow for specific classing of the tr and td elements it renders out.  Anyway, just some thoughts that might provoke further discussion.

 Later note --

Quick refinement.  I would recommend setting the DynamicMenuStyle-CssClass property to the name of a class such as "Class1", then in the stylesheet, have a block that specifies that all tr tags within that class should be
displayed inline.  This targets the style so it doesn't affect all tr tags.  Source code example:

ASPX File 

<asp:Menu ID="mnuTopNav"  runat="server" Orientation="Horizontal" DynamicMenuStyle-CssClass="Class1"  ></asp:Menu>

CSS File

.Class1 tr { display:inline; }
 


 


 

CVM
Asp.Net User
Re: Horizontal submenu in asp.net 2.010/1/2007 5:42:40 AM

0

Did you find an answer to the submenu problem?

Michael S. Flynn
dsa1971
Asp.Net User
Re: Horizontal submenu in asp.net 2.010/18/2007 12:49:32 PM

0

Try Ultimate Menu  It has an option for "All horizontal"

lividsquirrel
Asp.Net User
Re: Horizontal submenu in asp.net 2.011/15/2007 7:24:24 PM

0

Did changing the DynamicMenuItemStyle-CSSClass property to a CSS selector that told "td" tags to be inline not help? 

gilbea
Asp.Net User
Re: Horizontal submenu in asp.net 2.012/30/2007 12:13:55 PM

0

Hi! I have had this problem too. I fixed it with the css solution for the tr but only works in Firefox. Not in IE.

Im don't know much about CSS so I don't know what else to do to make i work in IE too :(

 

Any help please?

 

Thanks!

ronmoles
Asp.Net User
Re: Horizontal submenu in asp.net 2.012/30/2007 7:45:07 PM

0

I have found a great website that has plenty of CSS menus (horizontal AND vertical), that are free.  Some you have to "request permission" to use.

 Check out:

 http://www.cssplay.co.uk/menus/

I really like:

http://www.cssplay.co.uk/menus/pro_droptab.html#nogo

19 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Core Internet application development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
ASP.NET 2.0 All-In-One Desk Reference For Dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1100, Published: 2006
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005

Web:
Horizontal submenu in asp.net 2.0 - ASP.NET Forums I need a Main menu that could be bound to a site map and display a horizontal sub menu. please if abyone knows about this tell us. thanks. ...
Horizontal submenu in asp.net 2.0 - ASP.NET Forums I'm building a site that requries a horizontal submenu. Is it possible to configure the existing control in asp.net 2.0 to do that? ...
Horizontal Menu and Sub menu in asp.net 2.0 Talk about Horizontal Menu and Sub menu in asp.net 2.0.
ASP.NET horizontal menu with submenu appearing below, also ... Browse other questions tagged aspmenu asp.net menu horizontal submenu or ask your own question ... ASP.NET 2.0: How to bind an asp:Menu to an SqlDataSource? ...
CSS Control Adapter Toolkit for ASP.NET 2.0 - ScottGu's Blog NET. This toolkit provides information about how the ASP.NET 2.0 Control Adapter ... Menu1.aspx shows how to build a horizontal sub-menu navigation system ...

Remove Arrow from menu - ng.asp-net-forum ... Remove Arrow from menu, > ROOT > NEWSGROUP > Asp.Net Forum ... that the menu item has a submenu, then you need to set the Menu. ... NET How to remove Arrow sign in Menu in ASP.Net 2,0 How to remove Arrow sign in Menu in ASP. ... Menu Control: How do I remove the arrow from my horizontal menu . ...
Asp.Net 2.0 Treeview - How to AutoPostback when a TreeNode's ... Asp.Net 2.0 Treeview - How to AutoPostback when a TreeNode's checkbox gets checked? ... ValueField="Id" /> Asp.Net 2.0 Login controls with credentials specified in web ... Pro ASP.NET 2.0 in VB 2005 Authors: Laurence Moroney, Matthew MacDonald, .... stylesheets when using themes in asp.net 2.0? horizontal tabbed menu? ...






image control

generic list

compile error: could not load type

problems with types and database manipulation

need help getting gridview data to csv export

parameter binding

how to use multiview in asp.net

can't add a space - c#

session problem

submit button click event

how to make source unreadable ?

webmatrix and inserting data into an sql database

why do empty controls get submitted ??

help converting vb array command to c#...

designing an email application

how to use a select name to show in the internal workgroup/domain.

message box

im a complete beginner.

getting started with c# and asp.net

setting selectcommand to a variable

vb.net shared

ms access oledb connection password

worked with audio recorder

parameter in html codes!

what is "asp.net whidbey" ?

recruit question

posting data from control to page

linkbutton vs hyperlink control

remember password for reports

trouble refreshing gridview

   
  Privacy | Contact Us
All Times Are GMT