Solved

Do I need two sitemap

Posted on 2011-09-19
5
270 Views
Last Modified: 2012-06-21
Suppose in the navigation plan, I set up twos. One is vertical on the left sidebar, the second one is just below the header which is Horizontal.

My question is that do I need two siter map files?

Thanks.
0
Comment
Question by:zhshqzyc
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:libby9284
Comment Utility
Yes.  You might be able to do something programmatically to do it with one sitemap file but using two sitemap files will save you time and would likely be more efficient.
0
 

Author Comment

by:zhshqzyc
Comment Utility
Then how can we match them each other?
Suppose the first control is a menu, the second one is a treeview.
The sitemap files: web1.sitemap and web2.sitemap.
I want
menu<==>web1.sitemap
treeview<==>web2.sitemap

Open in new window

0
 
LVL 3

Expert Comment

by:libby9284
Comment Utility
use a menu control and bind it to the first sitemap file, then use a treeview and bind it to the second sitemap file.  Some examples can be found here
0
 

Author Comment

by:zhshqzyc
Comment Utility
How to bind?
The <asp:SiteMapDataSource> control automatically connects to the default sitemap file (web.sitemap).

How it knows which one is default sitemap? Is there an ID?
0
 
LVL 3

Accepted Solution

by:
libby9284 earned 250 total points
Comment Utility
You configure it in the web.config  this link shows how to do it and then how to, outside the web.config, set the second sitemapprovider up.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now