asp.net checkList [英] asp.net checkList

查看:58
本文介绍了asp.net checkList的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个包含2个部分的页面.

员工和操作每个部分都有不同的复选框,每个复选框都有一个全选"以选择所有复选框,并具有一个公共复选框以选择两个部分中的所有项目.

我需要将所有选中的复选框的名称存储在数据库中.如何使用清单控件或哪种控件是实现此目的的最佳控件?

请帮帮我.
谢谢.

Hi,

I have a page with 2 sections.

Employee and Operation with different check boxes for each section, each having a "Select All" for selelcting all check boxes and a common check box to select all the items from both sections.

I need to store the names of all selected check boxes in the database. How can I do it wth checklist control or which is the best control to implement this?

please help me.
Thank you.

推荐答案

您可以为此目的使用asp.net的Checkboxlist.将其保存到数据库时,您需要遍历复选框列表并检查所有已检查的项目,并将其相应地保存到数据库中.
您还有其他问题吗,让我知道
You can use Checkboxlist of asp.net for this purpose. At the time of saving it into DataBase, you need to iterate through both the checkboxlist and check, what all items are checked and accordingly save it into database.
Are you facing any other issue, let me know


这篇关于asp.net checkList的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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