开发者

I want to bind gridview of all D:\ drive file folders in asp.net?

开发者 https://www.devze.com 2023-01-17 00:34 出处:网络
I want to bind gridview of all D:\\ drive file folders开发者_Go百科 in asp.net? and download the file?

I want to bind gridview of all D:\ drive file folders开发者_Go百科 in asp.net? and download the file? how is it possible?


You basic need 2 functions to travel to the directories and files...

System.IO.Directory.GetFiles(CurrentFolderPath, "*");
System.IO.Directory.GetDirectories(CurrentFolderPath, "*");

and then use a generic handler (.ashx) to render the results (and download this file).

0

精彩评论

暂无评论...
验证码 换一张
取 消