ads

Thursday, April 16, 2009

Display All Server Files in Server using C# and ASP.NET

DirectoryInfo di = newDirectoryInfo(Server.MapPath("/"));

FileInfo[] fi = di.GetFiles();

fi = di.GetFiles("*.*");

foreach (FileInfo fi1 in di.GetFiles())

{

Response.Write( fi1.FullName.ToString());

Response.Write("<br />");

}

1 comment:

Anonymous said...

Hey there! Do you use Twitter? I'd like to follow you if that would be okay. I'm undoubtedly enjoying your
blog and look forward to new posts.
top seo picks

Google Search