Solved

Do I need two sitemap

Posted on 2011-09-19
5
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:libby9284
ID: 36561238
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
ID: 36561672
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
ID: 36561971
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
ID: 36562127
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
ID: 36562198
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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