C GetParentFolderName

  • Thread starter Thread starter Thom Little
  • Start date Start date
T

Thom Little

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.
 
Back
Top