C# Get All Files from Folder and Subfolders & Display it in Gridview in asp.net
Introduction : Here I will explain how to get all files from folder and subfolders in C# and display or bind to Gridview in asp.net using C# , VB.NET or C# Get All Files from Folder and Subfolders and Display it in Gridview in asp.net . Description : In previous articles I explained Download files from gridview with link button in asp.net , Upload images to folder and display it in gridview in asp.net , create zip files in asp.net , Delete files from uploaded folder in asp.net , create/delete directory in asp.net , Joins in SQL Server and many articles relating to Gridview , SQL , jQuery , asp.net , C# , VB.NET . Now I will explain how to get all files from folder and subfolders and bind to Gridview in asp.net using C# , VB.NET . To display all files from folder and subfolders in Gridview we need to write the code like as shown below C# Code // Bind Data to Gridview protected void BindGridview() { string strpath = ...