多个复选框控件选择

编程入门 行业动态 更新时间:2024-10-28 00:18:53
本文介绍了多个复选框控件选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要一个示例代码来选择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#.[^]

更多推荐

多个复选框控件选择

本文发布于:2023-11-06 15:59:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564147.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   控件   复选框

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!