detect checkboxlist checked more then 1 item
<h2>i figure out the answer that i want already, due to the reputation less than 100, i cant post my answer right now,anyway thanks for everyone help,i will post the answer after 7hours</h2>

<p>my checkboxlist contain 3 item which are A,B,C
if user have check A which is what i want then user will obtain 2 marks
else user obtain 0 marks</p>

<p>my problem is whenever user check more then 3 item, user still able obtain 2 marks, by right user should obtain zero marks because user checked A,B,C</p>

<p>so how to make it like if user have checked more than 1 checked box in checkboxlist then user will obtain 0 marks</p>

<p>example</p>

<pre><code>if(A==A){
    //user obtain 2 marks
}else{
    //user obtain 0 marks
}

dtr = cmd.ExecuteReader();

if (dtr.Read())
{
    if (dtr["Answer"].ToString() == CheckBoxList1.Text.ToString())
    {
        Label2.Text = "2 marks";
    }
    else
    {
        Label2.Text = "0 marks";
    }
}
else
{
    Response.Write("db not read");
}

dtr.Close();
</code></pre>
