This cannot be done. Since ASP.NET code runs on the server, you will be only able to access the server directories like this:
// C#
DirectoryInfo ourDir = new DirectoryInfo(@”c:\windows”);
Console.WriteLine(”Directory: {0}”, ourDir.FullName);
foreach (FileInfo file in ourDir.GetFiles() )
{
Console.WriteLine( “File: {0}”, file.Name );
}
Hope this helps.
Posts Tagged ‘Side’
How To Handle Client Side Scripting Using Javascript In Asp.net 2.0. Haw To Use Single .js File To Whole Proje
November 29th, 2009am using ASP.NET 2.0 for my web application, in that i have to client side scripting using Javascript. Am able to do it in each single pages, but i need to use sigle script for whole project (i.e. with using .js file). i dont no how to access these .js file from my ASP.NET page. plz help me …… am stuck uppppppppp
What Are The Advantages Of Php Over Other Server Side Scipting Languages?
September 17th, 2009Are there better server side languages than php, and which is easiest to learn?