Click here to Skip to main content
15,918,676 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi..
I am making Online Examination Project.
To start the exam , i want to display all the question nos. randomly on bottom of my page. when user clicks particular No, Question stored at that no. will get displayed in label.
Can some tell me how to display all question no. below on my asp.net page, and how do display that question in label??
Posted

u can solve this problem with Standard table (###)
 
Share this answer
 
Well by the looks of it you need a set amount of buttons against how many questions you intend to have. Each question needs to be in a database with the primary key being the question number. Post the question number to the content of the button.

Then you need to set each button so that on press the appropriate question is pulled from the database. It won't be to difficult just a bit time consuming setting up db etc.

hope this helps.

The way to change colours on buttons etc you would need an if statement saying something along the lines of if an answer has been selected changed background colour to desired colour.

Another way to do it would be to have a pool of questions in a xml/excel file and import them in once all are imported randomly pic 20 questions out of the pool and then assign as appropriate.
 
Share this answer
 
v2
Hi,
Possibly this link http://dotnet.tekyt.info/?p=34 can be help to sort out your problem.

Thanks!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900