下拉列表和复选框列表 [英] Dropdown list and checkbox list

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

问题描述

你好,
我有一个一个下拉列表,它是从Active Directory填充的.和第二个我有复选框列表,其中我们有多个选择.它们是将复选框列表的多个值与单个绑定的任何方式下拉列表的值?

我想以以下格式将其保存在数据表或任何其他选项中,请告诉我
-------------------
角色页面
-------------------
老师1
老师2
学生1
所有1

Hello,
I Have one Dropdown list which i populated from Active Directory. and 2ndly I have checkbox list, where we have multiple selection.Is their Any way to bind multiple values of checkboxlist with single value of dropdownlist?

I want to save it in following format in datatable or any other option please let me know
-------------------
Roles pages
-------------------
teacher 1
teacher 2
student 1
All 1

推荐答案

在数据库中创建一个表,该表在列中保存dropdownlist值,在另一列中保存checkboxlistvalues,并且您需要标识列,以便知道谁选择了哪些设置.
create a table in the database that hold the dropdownlist value in column, the checkboxlistvalues in another column and you need an identifying column so you know who has chosen which settings.


使用两个表.通过密钥将它们关联.
Use Two tables. Relate them by a Key.


这篇关于下拉列表和复选框列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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