From: DavidC on 5 Aug 2010 09:05 I have a GridView that is displaying all the files and in a specific directory and it works fine. However, there are now folders (subfolders) inside that directory that I would also like to display (maybe with a folder icon which I can figure out). How can I get all files and folders to display in my GridView? Below is the portion of code that I now use to display the files. Thanks. Dim dirInfo As New DirectoryInfo(strPathPhy) Dim fileInfoArray() As FileInfo = dirInfo.GetFiles() Array.Sort(fileInfoArray, New CompareFileInfoEntries(compareMethod)) articleList.DataSource = fileInfoArray articleList.DataBind() -- David
|
Pages: 1 Prev: Images and Style sheets not found Next: ASP.Net 4.0 - Events firing twice. |