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.
 

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

Similar Threads

Read ASP 3 Session Data 5
Outlook 2007 - Frozen Messages 10
HTML AJAX to ASP.NET 2.0 3
Hex 2
Remote Server Status 5
HTML AJAX to DOT.NET in Different Domain 9
Gradient on Gadget Bar 2
Vista Files 3

Back
Top