How to solve this? Random record in dataset or AdRotator

M

Miguel Dias Moura

Hello,

I need to display a random image in an ASP.Net/VB web page.

I created a dataset which connects to an access database.
So I got 2 fields:
- Link where the image is placed.
- Link to go when the image is clicked.

Well, I placed an image in the page using this line:
<img src='images/<%# dsImageBank.FieldValue("image", Container) %>' />

This shows the image of the last loaded record of the dataset.
How to make this random?

I looked at the AdRotator component but it gets the images from XML and
I need to get the images from the database.

Can someone help me out?
I am short on time here.

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,265
Latest member
TodLarocca

Latest Threads

Top