本文介绍了多个复选框控件选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个示例代码来选择c#中的多个复选框. 我有一个带有多个复选框控件和一个按钮的asp Web表单. 在多个复选框中,我有4个项目,例如admin,Users,Employees,students. 如果我选择一个或两个类似的复选框,然后单击提交"按钮,我想将所选值保存到数据库中. 谁能帮我提供示例代码. 谢谢您,
Hi, I need a sample code for multiple checkbox selection in c#. I have an asp web form with multiple checkbox control and a button. In multiple checkbox I have 4 items like admin,Users,Employees,students. If I select one or two like check-boxes and if I click submit button,I want to save the selected values to be stored in Database. Can anyone help me with a sample code. Thank you,
推荐答案看看这篇文章,其中介绍了选定的值并显示出来:www.codeproject/Articles/29663/Multiselect-Dropdown-for-Web-Applications [ ^ ] 您将需要ADO.NET将数据保存到数据库中.在这里查看:简单ADO.NET数据库读取,插入,使用C#更新和删除. [ ^ ] Have a look at this article that pulls in the selected values and displays it: www.codeproject/Articles/29663/Multiselect-Dropdown-for-Web-Applications[^] You would need ADO.NET to save the data into database. Look here: Simple ADO.NET Database Read, Insert, Update and Delete using C#.[^]
更多推荐
多个复选框控件选择
发布评论