0

How to create a website where a user logins to the site and takes the quiz. And each time the difficulty level should increase after clearing each level. How to put the questions and how to do. should i do it in windows application or different pages for each question. some suggest me a idea.


Series of questions and a timer must run after submittting or time is over the score must be shown. how to display the questions. with what to work and how to connnect the page to that questionaire.

3
Contributors
7
Replies
11
Views
6 Years
Discussion Span
Last Post by Fortinbra
0

If you want to limit your audience to windows users, then a client side app would be the way to go. Otherwise ASP.NET with either an XML or SQL data store. For front end, you could do a Silverlight app that connects to ASP.NET web-service for data, or package the XML file with it.

What is your target audience with this? Is there a need to store user data, or just quiz data? What are your non technical requirements, as these will help you find what your technical ones should be?

0

Asp.net application(file system) is best to create quiz website. You don't have to create seperate page for each question.
1. Create a database and a table with 7 columns-:
i)serialno(identity column)
ii)question(write question here)
iii)option a
iv)option b
v)option c
vi)option d
vii)answer

then create the first page as login page
then create second page(with 5 labels and 1 button,1gridview(visible=false))
first label is for question
second,third,fourth,fifth label for options a, b, c, d.
button is for move to next question
gridview is for creating connection
Now, On the page load event retrieve the values of labels by the query-:
int r=0;
//column 2
Label1.Text=Gridview1.Rows[r].Cells[1].Text.ToString();
//column 3
Label2.Text=Gridview1.Rows[r].Cells[2].Text.ToString();
//column 4
Label3.Text=Gridview1.Rows[r].Cells[3].Text.ToString();
//column 5
Label4.Text=Gridview1.Rows[r].Cells[4].Text.ToString();
//column 6
Label5.Text=Gridview1.Rows[r].Cells[5].Text.ToString();
//column 7
char answer=Gridview1.Rows[r].Cells[6].Text.ToString();

Check the user selected option with the answer variable
if optionchoosed==answer, r++
otherwise redirect to third page(thankyou page).OK
I hope this information is useful to you, send me your feedback at <<Snipped>>

Edited by __avd: Email snipped.

0

hi!

Can u tell me how to do a timer for the quiz code which is not changing even if i refresh the page or reload the page.......with minutes and seconds......

0

Depends on what kind of refresh you are talking about. Full page, or partial page. Partial page, you're gonna want to look into AJAX, but full page, that's a really tricky one.

0

Add a script manager and an update panel, and whatever you want to refresh needs to go inside this update panel. you can have multiple update panels, but they will all update at the same time, unless you change the default settings.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.