Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Do I need two sitemap

Posted on 2011-09-19
5
Medium Priority
?
316 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
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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Integration Management Part 2
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

972 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