C GetParentFolderName

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

Michael Nemtsev [MVP]

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

Thom Little

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

Thom Little

It is ...

string tlaRealm = Page.TemplateSourceDirectory ;

.... Thom
___________________________________________________
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,518
Latest member
RomanGratt

Latest Threads

Top