how to create a quiz software using 4 options to answer
and how to check with answers in the database and award
marks....
Answer / 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 |
Why sql Data Reader object not created
What is ado net stands for?
What is the difference between typed and untyped dataset?
What is sql connection in ado.net?
OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand ("select * from login",oleDbConnection1)); OleDbCommandBuilder cmd=new OleDbCommandBuilder(ole); ole.Fill(dataSet11,"login"); DataRow drow=dataSet11.Tables ["login"].NewRow(); drow[0]=textBox1.Text; drow[1]=textBox2.Text; drow[2]=textBox3.Text; dataSet11.Tables["login"].Rows.Add (drow); ole.UpdateCommand=cmd.GetUpdateCommand(); ole.Update(dataSet11,"login"); MessageBox.Show("one row added"); this gives exception.how to solve it
what is data access layer?
What is the hierarchy of data in databases?
What is serialization and de-serialization in .net?
How do I delete a row from a DataTable?
Some important instruction regarding ADO.NET connection string ?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
I want to ask u that if i add radio button in ado.net form,and how radion button data insert in SQL2005 Database...