Click here to Skip to main content
15,900,493 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
how to read all files in folder using filesystem object and show that filenames in gridview or listbox?


thanks & Regards
Hari
Posted

VB
Imports System.IO

Dim dir As New DirectoryInfo("Your full path")
GridView1.DataSource=dir.GetFiles()
GridView1.DataBind()
 
Share this answer
 
 
Share this answer
 
Comments
Hari Krishna Prasad Inakoti 1-Nov-12 7:59am    
i want it using filesystem object
Mehdi Gholam 1-Nov-12 8:14am    
read this : http://msdn.microsoft.com/en-us/library/ms127994.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900