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

What is ado in agriculture?

962


Explain which name space is used to get assembly details?

962


What are good ado.net object to replace to ado recordset object.

1119


What are disadvantages of microsoft-provided data provider classes in ado.net?

1027


Explian About DataAdapters

1019


What does datareader object do?

1004


What is microsoft ado.net?

1141


What is data adapter in ado.net with example?

1027


Explain ado.net features? Benefits? Drawbacks?

1047


Define data adapter?

948


Describe connection object in ado.net

1032


Explain the architecture of ado.net?

1064


Explain how to pass multiple tables in datasets simultaneously?

1029


How do you update a dataset in ado.net and how do you update database through dataset?

926


What DataReader class do in ADO.NET ?

1093