How to get folders from physical path from server in asp.net c#? -



How to get folders from physical path from server in asp.net c#? -

i have deployed web applciation in sever, when click button folders "d:\test\" has added in foldername list

string path = @"d:\test\"; list<string> foldername = new list<string>(); foreach (string s in server.mappath(path)) { foldername.add(s.remove(0, path.length)); }

but above code doesn't work. in way can add together folder name in list

c# asp.net

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -