从数据库获取CheckBoxList描述
我想在我的 aspx 页面中放置一个复选框列表,该复选框列表从数据库中的表中获取值描述。 例如,我有这个表:
Descriptions
1 - Description1
2 - Description2
3 - Description3
4 - Description4
5 - Description5
...
我应该获得这样的复选框列表:
X - Description1
X - Description2
....
我怎样才能做到这一点?
提前致谢。
路易吉
I want to put a checkboxlist in my aspx page that gets value descriptions from a table in the database.
For example, I have this table:
Descriptions
1 - Description1
2 - Description2
3 - Description3
4 - Description4
5 - Description5
...
and I should obtain a list of checkboxes like this:
X - Description1
X - Description2
....
How can I make this?
Thanks in advance.
Luigi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我就此发表了一篇博文。我希望它有帮助:
http://www. codersbarn.com/post/2008/10/12/Bind-CheckBoxList-to-DataSet.aspx
I put out a blog post on this. I hope it helps:
http://www.codersbarn.com/post/2008/10/12/Bind-CheckBoxList-to-DataSet.aspx