JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser .
C GetParentFolderName
Thread starter
Thread starter
Thom Little
Start date
Start date
Feb 21, 2008
Is there an example of how to get the parent folder name within a C# ASP.NET
page?
.... Thom
___________________________________________________
Thom Little -
www.tlanet.net - Thom Little Associates, Ltd.
Hello Thom,
Parent folder of WHAT?
Where is standard DirectoryInfo class to get the list of folders
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
TL> Is there an example of how to get the parent folder name within a C#
TL> ASP.NET page?
TL>
TL> ... Thom
TL> ___________________________________________________
TL> Thom Little -
www.tlanet.net - Thom Little Associates, Ltd.
Yes that might help.
I am looking for the ASP.NET C# equivalent of the ASP 3 ...
Set tlaName = Server.CreateObject( "Scripting.FileSystemObject" )
tlaRealm = tlaName.GetParentFolderName( Request.ServerVariables(
"SCRIPT_NAME" ) )
.... Thom
___________________________________________________
Thom Little -
www.tlanet.net - Thom Little Associates, Ltd.
It is ...
string tlaRealm = Page.TemplateSourceDirectory ;
.... Thom
___________________________________________________
Thom Little -
www.tlanet.net - Thom Little Associates, Ltd.