Using the GetFiles method in the following manner:
Dim dirInfo As New DirectoryInfo(\\someserver\someDirectory)
Dim fInfo() As FileInfo
fInfo = dirInfo.GetFiles(searchFor.Text.Trim & "*.pdf", SearchOption.TopDirectoryOnly)
GridView1.DataSource = fInfo
GridView1.DataBind()
Nothing complex...
The returned list includes file names that do not even come close to matching the filter....For example, say the searchFor text box contained 003
...
Go to the complete details ...