DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   random generation (http://www.daniweb.com/forums/thread121679.html)

mrkcse Apr 30th, 2008 4:36 am
random generation
 
Hi all, iam developing one web application using asp.net ,c#.net which is basically for online examination

How to generte random questions which are stored in the questions master while creating exam and while user attends the exam.

please help me

tgreer Apr 30th, 2008 11:01 pm
Re: random generation
 
I'd use a SQL query. I'd also only use code tags when posting code, and I'd use question marks when asking questions.

ChaseVoid May 4th, 2008 2:08 pm
Re: random generation
 
I agree with the above poster. However it'll be easier if you implement LINQ. You can also retrieve few questions from the Database and display them, or you can use the Random Class to generate a random number, and use that number within the query to retrieve a question. This will be less of a burden/overload to the server.


All times are GMT -4. The time now is 3:59 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC