If this is posted twice, I'm sorry. I thought I posted it once, but I didn't see it come through.
I have a working page that was rather painstaking for me to build. We have people who each has one or more images. We use a table that has a personId field and a filename field. The page has a Listview control that uses a LinqDataSource. The listview displays all the images - one at a time - for a particular person, but I have it so that the first image displayed is either a specific image for the person if one was requested by the user, or a random image for that person. So the user can scroll through all the images for a particular person, but the first image displayed is either a requested image or a random image. As I said, this works.
I have another page that I want to do the exact same thing on, only in this case I don't have the images in a database table. The images are named so that once I have the personId, I can find all that person's images. So
Dim tstQuery = From tstArt In db.memArtworks _
Where tstArt.file2 = sFile _
View Complete Post