Hello,
I love the book. The first read was tough, but going through it a second time makes a world of difference.
I'm trying to make a trivia game where someone selects from a radio group an answer and when they click on a button, it posts whether or not they got it right:
Code:
protected void Queston1_Click(object sender, EventArgs e)
{
if(PontiacSilverdomeButton.Checked)
{
Response.Write("Incorrect");
}
else if(WayneStateButton.Checked)
{
Response.Write("Incorrect");
}
else if(DetroitButton.Checked)
{
Response.Write("Correct! Detroit Lions played their first game at The University of Detroit Stadium in 1934");
}
else if(TigersButton.Checked)
{
Response.Write("Incorrect");
}
My problem is that I want to control where the message gets displayed and how do I do it? I'm not a programmer so I don't know how to display the write response to a label or validation summary? I don't seem to see it in the book or not interpreting what I read properly?