than user click next button i have showing to user message user answer is write or worng.
every time.
how can i perform this like operation in my web page.
Well, that indicates you want to create a question wizard for users, users just can answer one question once time and you want to show the result when user click the next button. If I don't misunderstand your requirement. The Wizard control may be your consideration:
The Wizard control uses steps to delineate different sections of user data input
kadavla
Member
270 Points
211 Posts
quiz answer
Feb 28, 2012 05:45 AM|LINK
i have make a quiz i have tow table.
one table is this like
Question id
Question
write answer
ans1
ans2
ans3
ans4
Second table is Employee
Question id
emp_no
emp_name
emp_answer
emp_result
In emp_answer stored to Radiobutton is select value like this
public void answer()
{
int userans = 0;
if (answer1.Checked == true)
{
userans = 1;
}
if (answer2.Checked == true)
{
userans = 2;
}
if (answer3.Checked == true)
{
userans = 3;
}
if (answer4.Checked == true)
{
userans = 4;
}
SqlCommand cmd = new SqlCommand("Insert into emp1(emp_ans)values(@ans)", con);
cmd.Parameters.AddWithValue("@ans", userans.ToString());
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
than user click next button i have showing to user message user answer is write or worng.
every time.
how can i perform this like operation in my web page.
in First table is write answer is already is defind.
plz how to two table through my operation is perform.
plz help me
Mamba Dai - ...
All-Star
23530 Points
2683 Posts
Microsoft
Re: quiz answer
Mar 05, 2012 02:55 PM|LINK
Hi,
Well, that indicates you want to create a question wizard for users, users just can answer one question once time and you want to show the result when user click the next button. If I don't misunderstand your requirement. The Wizard control may be your consideration:
The Wizard control uses steps to delineate different sections of user data input
http://msdn.microsoft.com/en-us/library/fs0za4w6.aspx
When users click the next button, you need to compare the value users selected to the right anser stored in the database and then show the result.
Feedback to us
Develop and promote your apps in Windows Store