Web Forms :: Can Read From A Dataset And Create A Hierarchical Horizontal Menu
Mar 5, 2010Can I read from a dataset and create a hierarchical horizontal menu?
View 4 RepliesCan I read from a dataset and create a hierarchical horizontal menu?
View 4 RepliesI want to create a Horizontal menu, which will further contain dropdown menu.
View 6 RepliesI need to create 2 level deep menu. The first level is static and horizontal. And i need the second dynamic level to be horizontal. Is there any oprion for dynamic menu item or it can be done by css somehow?
View 6 RepliesFor the ASP.NET Menu Server Control whose RenderMode is set to "List", there is an "Orientation" property which decides whether the menu would render as a horizontal or a vertical menu. I have compared the two HTML source code and was unable to find out which part of the HTML/CSS code set the orientation of the menu(unordered list).
View 2 RepliesI am getting following output in Dataset
ActivityID ParentActivityID ActivityName AcivityLevel
0 NULL Dashboard 0
1 NULL Market Trends 0
2 1 News 1
and I want to build HTML list as follow.
<ul>
<li>Dashboard</li>
<li>Market Trends[code]....
I'am coding on e-trade project with ASP.NET.I want to ASP.NET Menu control or HTML+CSS menus.I have a screen shot ; ![alt text][1]
or web site address here : [URL]
I want a menu like it.Horizontal and verticral menu
Site.Master file contains
<ul id="nav">
<% Html.RenderAction("Menu", "ShoppingCart"); %>
</ul>
[ChildActionOnly]
public ActionResult Menu()
{
// for to geenrate menu ?
return ????
}
How to generate hierarchical menu below in Menu method from database data ? Should I use stringbuilder or is there better way ?
Resulting html shoudl look like:
[Code]....
Is it possible to use SeparatorImageURL to display a small graphic centered between menuitems in a horizontal menu control?
View 1 RepliesHierarchical menu populated from sqlserver table?
View 2 RepliesAm developing a application in asp.net 2.0.I need a horizontal menu which resembles like this site:http://www.microsoft.com/en/us/default.aspx
View 2 RepliesI have a usercontrol with horizontal menu list items. I want my submenu items to auto size according to the longest submenu item width.It is working
as expected with my css code in firefox but not in IE. Im using IE 8.
Below i copied my codes, just copy css code in a file and name it NewCss.css. Then copy user-control, master page and default page in a test project and see the result appearing for me.
[Code]....
I am porting an ASP.NET 2.0 project to VS 2010 and ASP.NET 4.0. I have the asp.menu set up to go horizontally across the top of my master page. This works pretty good, but I have a couple of pages that take a long time to load a lot of data (that is another issue though). The problem that I am having is that when these slow pages load the menu is initially vertical and then switches to horizontal. This looks so bad that I had initially thought that it was displaying my sitemap page. I just want it to draw properly (horizontal) to begin with.
Also, the content page has a script manager with CDNenable set to true.
The menu is defined as:
<asp:Menu id="Menu3" runat="server" datasourceid="SiteMapDataSource1"
I am using VS 2010 and ASP.NET 4.0. I have the ASP:Menu in the top of my master page and it's orientation property is set to horizontally. I have a problem with some pages that take a long time to load data. The problem I am having is that when these slow pages load, the menu is initially vertical and then switches to horizontal after few seconds which doen't look good. I have tried to change Orientation in MenuItemDataBound but no difference.
View 3 RepliesUsing an ASP.NET 3.5 menu control set to horizontal, is there a way to specify that only a certain node of the menu displays? For example, let's say I have a vertical menu on the left side of the master page that is tied to a sitemap and displays these nodes. The submenus would be dynamic and only display when the root node is hovered.
Main Page
Second Page
Sub Menu 1
Page 1
Page 2
Page 3
Sub Menu 2
Page 1
Page 2
Page 3
A certain (powerful) group of my users will always be going straight to the pages in Sub Menu 1 and pretty much never touching the other pages. They would like a sub-master page that is based on the parent master page so that the primary vertical menu and the sitemappath are all still there but the sub-master page will contain a horizontal menu control that only displays the the Sub Menu 1 node, like this:
Sub Menu 1 Page 1 Page 2 Page 3
Is there a way to set up the menu control to start displaying at a certain node level so the parent nodes and sibling nodes aren't displayed or would this require maintaining a separate sitemap file? I hope this makes sense.
I've built a website with a Horizontal Menubar at the the top of the site, it works fine the only problem is now that i have added more items to the website map it has now grown wider than the site, so what i would like it to do is when it gets to a certain width drop down and start adding the node links underneath. i tried setting the width property of the <asp:menu> but this did not seem to do anything at all. I could obviously add a second menubar linking to another sitemap but i would like to be as dynamic as posssible. Plus the menu is baseed around the role structure so some users may only see 5 items where admins, supervisors etc may see around 30 level 1 menu items with multiple subitems. so in short how to i make the menu wrap round to the next line when a certain length is reached
View 3 RepliesI am having a menu control with the horizontal orientation.
when the number of the menuitems increases the menu control is extending.
how to display the menu items in the next line and avoid the extending of the menu control.
I have a navigation menu down the left hand side of my page and I want to align the text horizontally to the left.
There doesnt seem to be any property for doing this or perhaps there is and im being a bit thick.
I want to display child rows in the datagrid after the + sign is selected (like grouping & outlining in excel). This is automatic in infragistic grids but when i did in asp (no more infragistics) it doesnt work. here is my code (very simple stuff)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
</form>
</body>
</html>
DataSet ds = new DataSet();
ds.Tables.Add(myDataAccess.ExecuteSelectCommand("uspCategories"));
ds.Tables[0].TableName = "tblCategories";
ds.Tables.Add(myDataAccess.ExecuteSelectCommand("uspProducts"));
ds.Tables[1].TableName = "tblProducts";
DataRelation rel = new DataRelation("relation", ds.Tables[0].Columns["CategoryID"], ds.Tables[1].Columns["CategoryID"]);
ds.Relations.Add(rel);
GridView1.DataSource = ds;
GridView1.DataBind();
Can we include vertical menus inside of horizontal menu?? I want to dynamically add vertical menus( the values of the items inside of that are driven from the database) to a horizontal menu to get a tab strip like look and feel.Further is there an other way to making this process dynamic so that adding some values to the database drives the menus that appear on my page?
View 1 RepliesI would like to continue my background image to the right end of the content holder and keep the menu items over on the left of the content holder. Does this make sense? For example, my menu items are dynamically loaded. Sometimes I have only two (Guest and Member). Right now my background image ends rignt after the "Member" item but I want the image to continue across the page. It is important to note that setting the "width" property in the CSS stretches the items across the page and this is not what I seek. Here's a bit of code.
[Code]....
[Code]....
I saw a horizontal menu bar on CNN that used scolling images. The bar had arrows on eithe end to scroll the imagessmoothly to the left or right. Additionally clicking on one of the images filled a dsiplay area below the bar with information relatinh to the image. I prefer CSS only but if I must use JScript then I will.
I haven't been able to find any code to do this and don't have the knowledge yet to write it myself. I saw one site that said I could get code similiar to what I need but then it never gave a link to download it. My boss wants it on our web page if I can make it happen.
I am using Menu control with CSSFriendlyAdapters to create a horizontal drop-down menu. However, I have page where there is an image gallery built as a flash object just below the top tier of the menu. If I click on an item that has submenu items the drop-down items go behind the flash object and you can't see them to click on them.The menu is defined in the masterpage. how to get round this without moving / changing the look of the page. Can the menu be set to be in front of the flash object?
View 1 RepliesI am using that standard asp.net menu system and I have it linking to an SQL view via XML. All that stuff works fine but when I try to add a separator image to the menu it adds the image below the text. It looks like it is wrapping the image down to the next line.
View 2 Replieshow to create hierarchical grid using c#
View 1 RepliesMy menu control is in horizotal style and i want to show it's dynamic item also in horizontal style too, by default they are vertical. Plus the arrow(Static pop-out image) to be shown vertical rather horizotal which is by default. How to do that ?
View 3 Replies