I want to simply display the site map when the user clicks a link from the footer.
I am not sure how to go about this. I see web.sitemap and have read up on using this file as a datasource etc.
Can someone point me in the right direction here. What is the best way to accomplish this?
I could hack something in but am really looking for best practices as I get my feet wet with this product.
Thanks
Best Way to Display Site Map?
-
- Lieutenant (LT)
- Posts: 79
- Joined: Thu Oct 04, 2007 9:23 am
- Location: West Hartford, CT
- Contact:
OK - so no one actually knows how to do this?
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
Isn't it a standard XML sitemap file that can be used as a datasource to the .Net sitemap control?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Copy and paste this code into a new file in your store folder. Make sure to name it with a .aspx extension. Hit the file directly with the URL. Make sure you have a web.sitemap file in your store folder before running the new page.
I think this is what you are looking for...
I think this is what you are looking for...
Code: Select all
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ASP:SITEMAPDATASOURCE ID="SiteMapDataSource1" RUNAT="server" />
</div>
<ASP:TREEVIEW ID="TreeView1" RUNAT="server" DATASOURCEID="SiteMapDataSource1">
</ASP:TREEVIEW>
</form>
</body>
</html>
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
-
- Lieutenant (LT)
- Posts: 79
- Joined: Thu Oct 04, 2007 9:23 am
- Location: West Hartford, CT
- Contact:
Ahhhh.... yes... I see it all so clearly now 
You rock!
Thank you!

You rock!
Thank you!
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
You're welcome. I'm thinking about making it a user control and selling it for millions.
Guess I shouldn't have posted my source code now that I think about it
Guess I shouldn't have posted my source code now that I think about it

Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com