Solved

Do I need two sitemap

Posted on 2011-09-19
5
286 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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