🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #259

Should I use Page.MapPath or Server.MapPath?

#259
From: Peter Jones
Date: Mon, 21 Nov 2005 19:39
15 lines
1247 bytes
Hi,

I am trying to retrieve the physical path of where the web app 
is running. 

- Is this.MapPath("Documents.xml") or Server.MapPath
("Documents.xml") suggested, and what is the difference between 
them?

- If I have two Documents.xml in different locations on the 
same server, will there be a chance the app maps wrong path?

Thanks in advance for any help.
Peter
Technical Details
Message-ID: <43823095$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b8e59bde6b69ec7d,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Jones" <peter@hotmail.com>
Sender: "Peter Jones" <peter@hotmail.com>
Reply-To: "Peter Jones" <peter@hotmail.com>
Subject: Should I use Page.MapPath or Server.MapPath?
Newsgroups: borland.public.csharpbuilder.language.csharp
X-User-Info: 65.94.110.196     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43823095$1@newsgroups.borland.com>
Date: 21 Nov 2005 12:39:49 -0700
X-Trace: newsgroups.borland.com 1132605589 207.105.83.66 (21 Nov 2005 12:39:49 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail