我如何...在asp.net的checkboxlist中获取已检查chechboxes的值 [英] How do I...get the values of checked chechboxes in checkboxlist in asp.net
本文介绍了我如何...在asp.net的checkboxlist中获取已检查chechboxes的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我有asp复选框。我在运行时绑定它。
页面加载后填充选项。用户检查所需的选项。
按钮点击我想知道所选的支票。
代码编写如下,但它对我不起作用
Hello all, i have asp checkboxlist. i am binding it at runtime.
after page load it populates with options. user check the required options.
on button click i want to know the selected checkboes.
the code written as follows but it does not work for me
for(int i=0;i<chkFeeComponents.Items.Count;i++)
{
if(chkFeeComponents.Items[i].Selected)
{
//code
}
}
推荐答案
参考:获取复选框列表选择值asp.net [ ^ ]
这篇关于我如何...在asp.net的checkboxlist中获取已检查chechboxes的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文