🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Should I use Page.MapPath or Server.MapPath?

#260
From: Marc Rohloff TeamB
Date: Tue, 22 Nov 2005 01:19
17 lines
1725 bytes
On 21 Nov 2005 12:39:49 -0700, Peter Jones wrote:

> 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?

Both Page.MapPath and Server.MapPath are wrappers for Request.MapPath

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <dufl7buzxni7.dlg@marcrohloff.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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
References: <43823095$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b8e59bde6b69ec7d
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: Should I use Page.MapPath or Server.MapPath?
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <43823095$1@newsgroups.borland.com>
Date: Mon, 21 Nov 2005 20:19:17 -0500
Message-ID: <dufl7buzxni7.dlg@marcrohloff.com>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0546-6, 11/20/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 65.31.9.204
X-Trace: newsgroups.borland.com 1132622270 65.31.9.204 (21 Nov 2005 17:17:50 -0700)
Lines: 17
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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