formview control in asp.net2.0

G

Guest

Hi Everybody,
I have a formview and in it I have inserted an image button.I have connected
both to the access database.I want to display an image there from the
database such that whenever the page loads the image should change, I mean i
should display a random image from database. I was unable to find out how to
do that.So, please help me regarding this problem.
Thanks in Advance,
Raju
 
J

Jignesh Desai

You can randomly select one row from database

Select Top 1 * from YourTableName
ORder by NEWID()

HTH
Regards,
Jignesh Desai
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top