954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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
mrkcse
Newbie Poster
9 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

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.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

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.

ChaseVoid
Junior Poster
116 posts since Aug 2007
Reputation Points: 40
Solved Threads: 12
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You