This code is working fine but opening folder on windows explorer, what i want is to open the folder on webpage. The folder is present on a FTP server named "SAN".What changes should be made in this code?????
Thanx.......
//// Opening Respective Folder of a User ////
DirectoryInfo directories = new DirectoryInfo(@"C:\\Inetpub\\ftproot\\san\\");
DirectoryInfo[] folderList = directories.GetDirectories();
int folder_count = folderList.Length;
for ( int j = 0; j < folder_count; j++)
if (Convert.ToString(folderList[j]) == id.Text)
{
Process p = new Process();
string path = Path.Combine(@"C:\\Inetpub\\ftproot\\san\\",id.Text);
p.StartInfo.FileName = path;
p.Start();
}
Loading
Abhimanyu K VatsaPosted Jun 16, 2010, 5:08 AM
i think it is not possible on browser based application i mean web based application because we can not list the entire directory of web server. in general web servers are shared and you can only view your own root directory not all. as per the windows application it will but i think not on web based. one main reason behind this is server.map() not works in such a way you want due to security reason. server.map() works entirely on localhost but on web server it only maps the location not all directory system.
good luck