从数据库获取CheckBoxList描述

发布于 2025-01-04 04:24:10 字数 324 浏览 6 评论 0原文

我想在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文