943,956 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1616
  • C# RSS
Apr 30th, 2008
0

random generation

Expand Post »
C# Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrkcse is offline Offline
9 posts
since Apr 2008
Apr 30th, 2008
0

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.
Last edited by tgreer; Apr 30th, 2008 at 11:01 pm.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
May 4th, 2008
0

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.
Reputation Points: 40
Solved Threads: 12
Junior Poster
ChaseVoid is offline Offline
116 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How to add DateTimePicker to ToolStrip ?
Next Thread in C# Forum Timeline: OpenGL Exception Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC