开发者

How to get all values of check boxes on button click asp.net

I have 10 che开发者_JAVA百科ck boxes populated using repeater

I want to grab all check boxes values which are checked on asp.net button click event in c#

Thank you very much for your help


puesdo codeish

checkedBoxes as new list(of checkbox)

for each item as repeater in repeater.items

 checkbox = (CheckBox)item.findcontrol("checkboxid")

 if checkbox.checked
  checkedBoxes.add(checkbox)
 end if

end for
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜