CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/22/2007 6:09:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
whtwolf
Asp.Net User
Multiple Menus on 1 web page using 1 sitemap2/22/2007 6:09:33 PM

0/0

I want to make multiple menus using 1 sitemap.

What I was thinking is that I would add another property to the sitemap called like topmenu, bottommenu and display.  Then only put the nodes that are for the topmenu and visible on the menu bar.  I know how to hide columns and stuff but not how to hide the whole row.

Any ideas?

Zhao Ji Ma - MS
Asp.Net User
Re: Multiple Menus on 1 web page using 1 sitemap3/1/2007 6:17:50 AM

0/0

Hi,

You can have multiple SiteMapDataSource, e.g. :

        <asp:SiteMapDataSource ID="SiteMapDataSource1"  runat="server" />
        <asp:SiteMapDataSource ID="SiteMapDataSource2" runat="server" />

with theire properties like StartingNodeOffset  to apopraite value. Then you can bind your Menu to each of them to achieve of this.

The StartingNodeOffset property affects the starting node and with it the site map data hierarchy that is exposed by the SiteMapDataSource control.

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.sitemapdatasource.startingnodeoffset.aspx

SiteMapDataSource properties:

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.sitemapdatasource_properties.aspx

 

 


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
whtwolf
Asp.Net User
Re: Multiple Menus on 1 web page using 1 sitemap3/2/2007 10:43:58 AM

0/0

Hello,

I did find this after I posted the message but at the moment I am not quite sure that it is what I am looking for.  I will be doing some testing this morning.  What I am wanting is to have everything come off of the home page then down but not every thing off of the root to show up on the top menu bar.  Then the tab strip is built on the bottom to be able to also have some of the same links from the top menu also.  If I do it the way you are showing I would have to have the page listed two times on the site map.  I am thinking at this point that I might need to write a seperate xml file to do this correctly with 3 fields in it OnTopMenu, OnBottomMenu, Visible.  This way I could set which menus I want the item to appear on and if visible is set to false it will take it off the menu(s).  Just hoping to use the sitemap file instead though if possible.

 Any ideas on how to do this?

Thanks for you help so far

whtwolf
Asp.Net User
Re: Multiple Menus on 1 web page using 1 sitemap3/2/2007 5:42:40 PM

0/0

Here is how I did it

<?

xml version="1.0" encoding="utf-8" ?>
<
siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<
siteMapNode url="/" title="Home" description="Welcome Page" topTabs="Yes">
<
siteMapNode Top="1" url="Emergency Procedures.aspx" title="Emergency Procedures" description="Emergency Procedures Policies" topTabs="Yes">
</siteMapNode>
</siteMapNode>
</siteMap>

Protected Function WriteOutTopLine(ByVal myContainer As SiteMapNode) As String
If myContainer("topTabs") = "Yes" Then
Return "<li><a href='" & Eval("Url") & "'><span>" & Eval("Title") & "</span></a></li>"
Else
Return String.Empty
End If
End Function

 
<div id="nav_header">
<ul>
<asp:Repeater ID="TopMenuRepeater" Runat="server" DataSourceID="SiteMapDataSource1">
<ItemTemplate>
<%#WriteOutTopLine(Container.DataItem)%>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
Then to do the bottom line you do the same thing just with bottomTabs and you can put code for both for visible or not.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Managing Information Technology in a Global Economy: 2001 Information Resources Management Association International Conference, Toronto, Ontario, Canada, May 20-23, 2001 Authors: Information Resources Management Association International Conference, Mehdi Khosrowpour, Mehdi Khosrow-Pour, Pages: 1202, Published: 2001
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005

Web:
Multiple Menus on 1 web page using 1 sitemap - ASP.NET Forums Multiple Menus on 1 web page using 1 sitemap. Last post 03-02-2007 12:42 PM by whtwolf. 3 replies. Sort Posts: ...
DHTML Javascript Menu. Deluxe Menu. v3.2.9 AJAX-like technology - loads web menu data from the server "on-the-fly". Generally loads faster than other page elements; Performs perfectly with unlimited ...
How To Have Multiple DHTML JavaScript Menus On The Same Page When using menus built inside table cells it's extremely important to build your ... aI("text=Menu 1;url=http://www.milonic.com/;status=Back To Home Page ...
How to: Configure Multiple Site Maps and Site-Map Providers Home Page First Level 1 First Level 2 Second Level 1 Second Level 2 ... Add the custom site-map provider to the Web.config file by using an add element. ...
One page with three menus - All using Menu Manager | CMS Made ... One page with three menus - All using Menu Manager. Richard Powell. by Richard Powell. RichardoP, a freelance web designer from Newcastle, ...
Dynamic Drive- What's New (Page 1 of 7) Accordion Menu script Credits: Dynamic Drive Anticipating that one of .... This script adds a custom cursor to your webpage using an interchangeable image. ...
How can I insert output from SiteXpert into multiple existing ... Because of these limitations, we would suggest using method 1 or method 2. If you want to insert a sitemap / menu into a web page using this method, ...
Building a Silverlight Menu Using Web.SiteMap Building a Silverlight Menu Using Web.SiteMap. Sunday, 1 June 2008 09:11 by bobbi ... InitParams["SiteMap"]; this.RootVisual = new Page(sitemap); } ...
One Web.sitemap for multiple SiteMapDataSource / Menus - ASP.NET ... My application contains multiple menus and i just to use one sitemap to power all menus. web.sitemap example. ...
Maven 1.x - Creating a Site Maven can be used to generate an entire web site for your project. ...




Search This Site:










refreshing parent window once you close a child window

how to change the dropdown arrow to something else?

error upgrading from dnn 3.0.13 to 4.02

dnn "file manager" access denied after db was relocated

layout in vwd, tables vs css

roles and logins?

creating sub web applications from a main web app

desparate asp.net newbie needs help with simple questions. help!!!

roll over menu for my master page ?

login controls in content place holder brake design

terms of use...

one ssl cert for multiple ips

getting html file title with asp.net

regarding development of discussion forums.

need help with error please

error while export excel file into dataset asp.net

how to force a sign out/session clear if browser is closed?

hi, i created a master page with header footer and side...

help on this coding....

how to use map property in image control inasp.net 2.0

web.config

website logins not working when running website from cd.

writing to a txt.file

populating list box

bullet lists

website --> web app vs website --> web deployment project

all i need is the date name not a number

masterpage issue

simple data access web application

j#

 
All Times Are GMT