stephenk1973
Technical User
I have a direcoty of images. How can i can i create a list of these images as a datasource for a thumbnail page?
I have tried creating a object datasource and corresponding buisness object but to be fair i'm not sure if this is the correct method......
Namespace PubsClasses
Public Class StoreImagesClass
Private dsStoreImages As DataSet = New System.Data.DataSet("ds1")
Public Function GetStoreImages() As ICollection
Dim d As IO.DirectoryInfo = New IO.DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Images/Display"))
Return d.GetFileSystemInfos("*.jpg")
End Function
End Class
Any pointers or articles much appreciated.
Thnaks
Stephen
I have tried creating a object datasource and corresponding buisness object but to be fair i'm not sure if this is the correct method......
Namespace PubsClasses
Public Class StoreImagesClass
Private dsStoreImages As DataSet = New System.Data.DataSet("ds1")
Public Function GetStoreImages() As ICollection
Dim d As IO.DirectoryInfo = New IO.DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Images/Display"))
Return d.GetFileSystemInfos("*.jpg")
End Function
End Class
Any pointers or articles much appreciated.
Thnaks
Stephen