473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Sitemap Deployment Problem

The following sitemap works fine on my dev box....
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="/TinaProject/DotNetDevelopment.aspx" title="Home
Page" description="">
<siteMapNode title="Propaganda" description="Tinas Project .Net
Development">
<siteMapNode url="/TinaProject/Advantages.aspx" title="Why
choose DBA?" description="" />
</siteMapNode>
<siteMapNode title="Tech Demos" description="Tinas Project .Net
Development">
<siteMapNode url="/TinaProject/PrintGrid.aspx" title="Print Grid
Component" description="" />
<siteMapNode url="/TinaProject/Intro.aspx" title="Image
Storage/Retrieval" description="" />
<siteMapNode url="/TinaProject/AJAXPage.aspx" title="AJAX
GridView" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>

but when I deploy to my webhoster there is no /TiimaProject directory so the
sitemap doesn't work at the real website. Right now I have to remove all
references to /TimaProject. Is there a way to resolve this so it runs both
on the dev box and the website?
Thanks,
T
Jul 24 '06 #1
1 1165
Yes, the best way is usually to use the tilde (~).
Here's an example.
<siteMapNode url="~/DotNetDevelopment.aspx" title="Home Page"
description="">

Here's more info:
http://SteveOrr.net/articles/SiteMaps.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tina" <Ti**********@nospamexcite.comwrote in message
news:ON**************@TK2MSFTNGP02.phx.gbl...
The following sitemap works fine on my dev box....
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="/TinaProject/DotNetDevelopment.aspx" title="Home
Page" description="">
<siteMapNode title="Propaganda" description="Tinas Project .Net
Development">
<siteMapNode url="/TinaProject/Advantages.aspx" title="Why
choose DBA?" description="" />
</siteMapNode>
<siteMapNode title="Tech Demos" description="Tinas Project .Net
Development">
<siteMapNode url="/TinaProject/PrintGrid.aspx" title="Print
Grid Component" description="" />
<siteMapNode url="/TinaProject/Intro.aspx" title="Image
Storage/Retrieval" description="" />
<siteMapNode url="/TinaProject/AJAXPage.aspx" title="AJAX
GridView" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>

but when I deploy to my webhoster there is no /TiimaProject directory so
the sitemap doesn't work at the real website. Right now I have to remove
all references to /TimaProject. Is there a way to resolve this so it runs
both on the dev box and the website?
Thanks,
T


Jul 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mcv | last post by:
I'm currently learning to use Cocoon, and although I really like it, there are a couple of things that don't seem to be explained very well. I've seen lots of articles explaining really complicated...
5
by: JJ | last post by:
Although this question involves Flash, I suspect the actual issue is an asp one.. I am trying to open the web.sitemap file in an .swf file enbedded in an asp page (I'm working in VS 2005). I...
6
by: rlueneberg | last post by:
Can someone tell if Sitemap always require a starting root? Can it have more than one root? I am having a problem trying to hide a root node without hiding its children using a Treeview component....
1
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level...
5
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would...
0
by: Chris | last post by:
Hi, i have a problem with the visibility of my sitemap. There is one role defined: "manager" There are two users: 'user1' (member of role manager) and 'user2' (not member). The login.aspx...
0
by: Chris | last post by:
Hi, i have a problem with sitemap combined with roles. I already posted this but i reformulated simplier: here: there are two defined users: user1 and user2 there is one role: manager user1...
0
by: jimdav24 | last post by:
I've implemented three sitemap providers for my SharePoint site. They all work but after 24 hours up to 2 weeks of uninterrupted service, I get the error "The file sitemap.sitemap required by...
0
by: Dave Mathew | last post by:
I'm in the process of building some navigation for a website. I would like to use the capabilities of the sitemap in asp.net but have ran into some styling/usability issues in the past using just...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.