Checkboxlist inside Repeater control
-
I am using repeater control in my page and repeater control has nested checkboxlist control,on one button click inside same repeater control,i am adding listitems to the checkboxlist control. the listed items add successfully into checkboxlist control.now i am want to get checkboxlist items checked value on another button inside repeater control. Plse give me sugession on this. My Handler for checkboxlist is not working. Dim Cbl_Groupname As CheckBoxList = CType(ri.FindControl("ChkLst_Groupname"), CheckBoxList) AddHandler Cbl_Groupname.SelectedIndexChanged, AddressOf Me.ChkBoxLsGroupName I add this handler in repeater control itemcreated event.
-
I am using repeater control in my page and repeater control has nested checkboxlist control,on one button click inside same repeater control,i am adding listitems to the checkboxlist control. the listed items add successfully into checkboxlist control.now i am want to get checkboxlist items checked value on another button inside repeater control. Plse give me sugession on this. My Handler for checkboxlist is not working. Dim Cbl_Groupname As CheckBoxList = CType(ri.FindControl("ChkLst_Groupname"), CheckBoxList) AddHandler Cbl_Groupname.SelectedIndexChanged, AddressOf Me.ChkBoxLsGroupName I add this handler in repeater control itemcreated event.
Instead of handler, try ItemCommand event of repeater. Also use CommandArgument and CommandName in combination with this to solve further issues. In the same event, you can find checkbox list by ... ((CheckBoxList)e.Item.FindControl("ControlName"))