random generation

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 9
Reputation: mrkcse is an unknown quantity at this point 
Solved Threads: 0
mrkcse mrkcse is offline Offline
Newbie Poster

random generation

 
0
  #1
Apr 30th, 2008
  1. Hi all, iam developing one web application using asp.net ,c#.net which is basically for online examination
  2.  
  3. How to generte random questions which are stored in the questions master while creating exam and while user attends the exam.
  4.  
  5. please help me
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: random generation

 
0
  #2
Apr 30th, 2008
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.
Last edited by tgreer; Apr 30th, 2008 at 11:01 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 111
Reputation: ChaseVoid is an unknown quantity at this point 
Solved Threads: 12
ChaseVoid's Avatar
ChaseVoid ChaseVoid is offline Offline
Junior Poster

Re: random generation

 
0
  #3
May 4th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC