Webmaster Forum

Go Back   Webmaster Forum > Scripting/Programming & Debugging > ASP & VBScript Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-2008, 04:33 AM
lang79james lang79james is offline
Junior Member
 
Join Date: Feb 2008
Posts: 2
lang79james is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default need help on sitemap menus

Ok I like to start of saying I am a newbie doing the as an hobby. After rebuilding my website with .aspx format I came across sitemaps and not knowing that much about them I pretty much made one file that would be my menu file and use the include file on all my pages from code I found online. Now that is nice and all but I want to make a second sitemap and be able to link to it but I dont know how seeing how I never got how to do the first one. After doing some reading I came across how to configure the web.config file to support more then one site map. My web.config file is setup like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<customErrors mode="Off" />
<authentication mode="Windows"/>
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<clear />
<add name="XmlSiteMapProvider"
description="Default SiteMap provider"
type="System.Web.XmlSiteMapProvider"
siteMapFile="Web.sitemap"
/>
<add name="StorySiteMap"
description="Story SiteMap provider"
type="System.Web.XmlSiteMapProvider"
siteMapFile="story/story.sitemap"
/>
</providers>
</siteMap>
</system.web>
</configuration>

Now my Question is how do I use the StorySitemap and not the default one.
The code I found that I am using for the default sitemap is:
<form id="form1" runat="server">
<table cellpadding="8">
<tr>
<td width="108" rowspan="2" valign="top" bgcolor="#990000">
<b><i>Menu Control</i></b>
<br />
<br />
<asp:Menu DataSourceID="SiteMapDataSource1" ID="Menu1" runat="server"
StaticDisplayLevels="2" BackColor="#FFFBD6"
DynamicHorizontalOffset="2" Font-Names="Verdana"
ForeColor="#990000" StaticSubMenuIndent="10px">
<StaticSelectedStyle BackColor="#FFCC66" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000" Font-Bold="False"
ForeColor="White" />
<StaticHoverStyle BackColor="#990000" Font-Bold="False"
ForeColor="White" />
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</td>
</table>
<br /><br />
</form></P>
Reply With Quote

This ad is part of our Revenue Sharing program
  #2 (permalink)  
Old 02-16-2008, 06:16 AM
lang79james lang79james is offline
Junior Member
 
Join Date: Feb 2008
Posts: 2
lang79james is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default

Found the answer and figured it about by messing around
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:21 AM.


Creative Commons License
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30