Re: VS2005 - how to specify location of a text file in dev and production?



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


Loading