title: Searching particular files in the folder
body: <p>Hi I can search all the images with .jpg extension and pass it to the fancybox gallery , The issue is i just want the images of particular productid 
  for instance if a product has 5 images , and they are saved as (productid_imagenumber.jpg) , therefore a product with productid 99 will be saved as 99_1.jpg , 99_2.jpg similarly 99_5.jpg,
  I can pass the productID but i cant find a away just to get the images of that productID , instead of getting all the images which is done by the function below:</p>
  
  <pre><code>Dim directory As DirectoryInfo = New System.IO.DirectoryInfo("C:Images\")
          Dim allImages() = directory.GetFiles("*.jpg", SearchOption.AllDirectories)
          Dim strContent As String = ""
          For Each image As FileInfo In allImages
  
              Dim strTemp As String = (String.Format("&lt;img  src=""{0}"" /&gt;", image.Name))
             strContent = "&lt;a class=""fancybox-thumb"" rel=""fancybox-thumb1"" href=""" &amp; image.Name + image.Extension &amp; """ title=""""&gt;" &amp; _
              "&lt;img src=""" &amp; image.Name + image.Extension &amp; """ alt="" /&gt;&lt;/a&gt;"
          Next
  
          If Not String.IsNullOrEmpty(strContent) Then
              Return String.Format("&lt;div id=""product-lightbox""&gt;&lt;p&gt;{0}&lt;/p&gt;&lt;/div&gt;", strContent)
          Else
              Return String.Empty
          End If
  
      End Function
  </code></pre>
  
  <p>Can any one give any suggestion or assistance on how to do this.</p>