Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
2.67/5 (3 votes)
See more:
how to show different-2 question RANDOMLY from database in asp.net
Posted
Comments
[no name] 1-May-12 12:30pm    
Reason for my vote of 1
No code shown. No database schema shown. No effort shown.
Sergey Alexandrovich Kryukov 1-May-12 12:55pm    
Agree with Wes. Voted 2.
--SA

1 solution

Use the Rand function[^].
SQL to Select a random row from a database table[^] should help you a great deal too.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-May-12 12:55pm    
This is the answer, a 5.
--SA
Abhinav S 1-May-12 12:56pm    
Thank you SA.
Shahin Khorshidnia 1-May-12 16:15pm    
+5
Abhinav S 1-May-12 22:52pm    
Thank you.
Mohammad A Rahman 1-May-12 22:50pm    
5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900