Click here to Skip to main content
15,906,569 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Pls someone tell that how to read all images from two application folder which are small, and big called folder in the application, i am able to display images from only one folder, but i dont know to take all images from large and small folder images in a single repeater control at a time.

This is my code


VB
Private Sub LoadDataList()
  'Dim imagesFolder As String = MapPath("PostedImages")
  Dim imagesFolder As String = MapPath("upload\PopupImage")
  'Dim imagesFolder1 As String = MapPath("upload\ThumbImage")
  Dim objDI As New DirectoryInfo(imagesFolder)
  'Dim objDI1 As New DirectoryInfo(imagesFolder1)
  dlImages.DataSource = objDI.GetFiles()
  dlImages.DataBind()
End Sub


I am able to display only one image folder images but how can I show both images folder at a time. Pls someone tell,


Thanks
Posted
Updated 26-Apr-11 9:20am
v3
Comments
Tarakeshwar Reddy 26-Apr-11 15:13pm    
Unchecked ignore html

1 solution

Create a List< FileInfo > and add the files from both the folders to it and then set the fileInfoList as the datasource.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900