开发者

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

开发者 https://www.devze.com 2023-02-05 03:37 出处:网络
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#

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

精彩评论

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