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

Recommended Answers

All 2 Replies

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.