Re: VS2005 - how to specify location of a text file in dev and production?
- From: dgk <dgk@xxxxxxxxxxxxx>
- Date: Tue, 20 Mar 2007 09:33:34 -0400
On Mon, 19 Mar 2007 10:30:47 -0400, "sloan" <sloan@xxxxxxxxx> wrote:
Public Shared Function FindPhysicalRootDirectory(ByVal p As Page) As
String
Dim rootDir As String
rootDir = p.Server.MapPath("~/")
Return rootDir
End Function
Thanks, I select this one being a VB guy. But is there some reason not
to just do:
Dim rootDir as String = p.Server.MapPath("~/")
or even just
Return p.Server.MapPath("~/")
I'm not sure what any of them get you over just throwing MapPath("~/")
into the code?
.
- Follow-Ups:
- References:
- Prev by Date: Re: How we define runat="server"
- Next by Date: Re: Uploading Files in .Net
- Previous by thread: Re: VS2005 - how to specify location of a text file in dev and production?
- Next by thread: Re: VS2005 - how to specify location of a text file in dev and production?
- Index(es):
Loading