I'm trying to read a folder full of images into a datast, and I think I'm close, but not quiet there
the code has an error at For Each dirInfo In Dir.GetDirectories()
saying 'getdirectories' is not a member of 'string'
not sure if this line is right, or what the glitch is
any help would be greatly appreciated
Dim Ds As DataSet
Dim myColumn As DataColumn
' Create new DataColumn, set DataType, ColumnName and add to DataTable.
myColumn = New DataColumn()
myColumn.DataType = System.Type.GetType("System.String")
myColumn.ColumnName = "ImageUrlField"
Dim dirInfo As New DirectoryInfo(Server.MapPath("~/Images/HeaderImages/"))
For Each dirInfo In Dir.GetDirectories()
DataRow(dr = Ds.Tables("Banners").Rows.NewRow())
dr("ImageUrlField") = dirInfo.GetFiles
DataList1.DataSource = Ds