2
Answers

How to display files in a multiple directory?

Emre Ozpalamutcu

Emre Ozpalamutcu

13y
1.2k
1
I'm making a mini disk cleaner and I have wrote this code: 

listView1.Items.Clear();
DirectoryInfo dirCustom = new DirectoryInfo("C:\\Windows\\");
FileInfo[] filCustom;
filCustom = dirCustom.GetFiles("*.txt");
foreach (FileInfo filFile in filCustom)
{
listView1.Items.Add(filFile.Name, "test");
}

However there are some missing parts, works fine but i need to search multiple path and extensions and it only displays the file name on the list view on detailed view. I want it to display the folder path and file size.
Answers (2)
0
Pankaj Gupta

Pankaj Gupta

NA 118 0 16y
hi,
As I understand your prob, you can put the RFV on the user control itself. if it is conditional according to page on which you are using web user control then please describe your prob in more detail.


0
Bechir Bejaoui

Bechir Bejaoui

NA 20.1k 5.3m 16y

are the textboxes within the webuser control or independant from it?