无法读取所选复选框的文本/值 [英] unable to read the selected checkbox text/value

查看:65
本文介绍了无法读取所选复选框的文本/值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将checkboxlist控件与数据源绑定在一起.尝试使用object.selectedItem.Text获取所选项目的文本.它引发错误.请帮忙.提前谢谢.

i have bound the checkboxlist control with a datasource. tried fetching the selected item''s text using object.selectedItem.Text. it throws error. please help. thanx in advance.

推荐答案

你好,
这是一个列表,您必须从列表中获取所有项目,然后检查是否选择了任何项目.请导航至以下URL以了解更多信息:
http://msdn.microsoft.com/en-us/library/a5kfekd2 (v = VS.80).aspx [ http://programming.top54u.com/post/Getting- ASP-Net-CheckBoxList-Selected-Items.aspx [
hello there
this is a list and you have to fetch all the Items from the list then check if any item is selected. Please Navigate To The Following URL To Know More :
http://msdn.microsoft.com/en-us/library/a5kfekd2(v=VS.80).aspx[^]
Or
http://programming.top54u.com/post/Getting-Values-of-ASP-Net-CheckBoxList-Selected-Items.aspx[^]
This May Be Helpful if not let Us Know.
Best Regards.


这篇关于无法读取所选复选框的文本/值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆