You can use the DirectoryInfo object in the System.IO namespace:
Code:string s = Server.MapPath(Request.ApplicationPath); DirectoryInfo d = new DirectoryInfo(s); Response.Write(d.Name);
|
Results 1 to 3 of 3
Thread: Get Current directoryThreaded View
|
Click Here to Expand Forum to Full Width |