I'm working in a web aplication in c#, vs 2008, framework 3.5, I need to assign a value to a var, in this case "problemas" ,
when I tried to save the value that I have in the checkboxlist, it does, but if don't selected, can't show 0, besides if I change the value "problemas = 9" to problemas = 111111" doesn't works, I've tried a lot of options but nothing works to me, please help, thanks in advance.
when I tried to save the value that I have in the checkboxlist, it does, but if don't selected, can't show 0, besides if I change the value "problemas = 9" to problemas = 111111" doesn't works, I've tried a lot of options but nothing works to me, please help, thanks in advance.
Code:
protected void ckblProblemas_SelectedIndexChanged(object sender, EventArgs e)
{
int problemas = 0;
{
if (ckblProblemas.SelectedValue.Equals("9"))
{
problemas = 9;
}
else
{
problemas.Equals("0");
}
Comment