Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Data binding a checkboxlist


Message #1 by visual_ben@h... on Thu, 9 Aug 2001 09:00:39
Hi there



When i databind to a check box and then with the returned html page 

uncheck some of the boxes and post the frm to the server the 

checkbox1.Items[i].Selected property always returns true even if the user 

has deselected the boxes. Even if the boxes were initially blank the 

property still returns true...here is the code below



for (int i=0; i< Keywords.Items.Count; i++) {

     if (Keywords.Items[i].Selected = true){

     //DO SOMETHING

     }

}



Has the way the propery worked chaged since beta1? am i missing something 

really obvious??!



please help



ben

  Return to Index