Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to create a quiz software using 4 options to answer
and how to check with answers in the database and award
marks....

Answer Posted / neha

First, you need to bind the label control to the questions
in the database as
Label ques = new Label();
ques.DataBindings.Add("Text", bindsource, "Question");

Similarly, you can bind 4 radio buttons to the 4 options of
the question.
You can provide the button then, clicking on which will
calculate the result and move on to the next question.
For calculation, you need to bind another label's tag
property to the correct answer column in the database, and
can match the strings to calculate whether the user has
entered right answer or not.
Based on that, the score variable can be incremented.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create data relations?

1053


What is the use of Dataview?

1194


What are the difference between readonly vs. Const?

1060


Explain ado.net features?

1105


Give few examples of datareader that is used in different dataproviders.

1009


What is microsoft ado.net?

1225


Which is faster ado.net or linq?

1066


How can I retrieve two tables of data at a time by using data reader?

1092


What are dcl commands?

1051


Explain sqlconnection object?

1067


What is bubbled event can you please explain?

1107


What is ado asp?

1039


Explain what are the steps to connect to a database?

1017


What is ado connection?

1010


How do you implement locking concept for dataset?

1048