p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   Web.sitemap (http://p2p.wrox.com/showthread.php?t=89119)

Wilfredo Rosado January 9th, 2013 11:26 PM

I was just curious about this. Is it possible to have more than one sitemap as long as they are named differently. I tried to do this but when I try to set the sitemapdatasource it doesn't allow me to to specify which sitemap to use. I end up with two identical sitemaps. I am trying to set up a horizontal and vertical menus with different links in each and I get the same links in both menus.

Any ideas?

Imar January 10th, 2013 10:06 AM

Yes, it's possible You need to register the sitemaps in Web.config and then refer to them in the various controls in your pages. More details can be found here: http://msdn.microsoft.com/en-us/libr...vs.100%29.aspx



All times are GMT -4. The time now is 12:21 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.