Hi Rajesh Muraharisetty,
Its not difficult to create an online exam paper.
First you need to design the database which will contain the question id, type of the paper, Question and 4 options and one field having the correct answer.
So you need 5 firlds:
1. Id int
2. Question varchar(100)
3. Option1 varchar(100)
4. Option2 varchar(100)
5. Option3 varchar(100)
6. Option4 varchar(100)
7. correctOption char(1)
So thats all from database side.
Now you need to create frontend: where you need to have a page with:
1. Id TextBox
2. Question textBox(readOnly)/label
3. Option1 group Option Button
4. Option1 group Option Button
5. Option1 group Option Button
6. Option1 group Option Button
7. OK and Cancel button
this is your aspx page.
Now you need to write the code behind file for logic:
for that you can write the buttonOk_click event:
Create the connection, command, datareader...
command objecte will get the wuestions one by one from the database and then when the user will click the any option, it should store its value by checking the answer from the same table and at the end , you cna count the number of correct answers.
if you want that the user should also be able to see their answers then you need to create one more tabel which will contain the user details and answer option. so that when evenr you want to show to the user, you cna retreive the answer from the base tabel and map it with user table.
Pawan Awasthi(DNS MVM)
+91 8123489140 (whatsApp), +60 14365 1476(Malaysia)