如何使用asp.net(c#)将一组复选框的选定值存储到数据库中 [英] How to store the selected values of a group of check boxes in to database using asp.net (c#)
本文介绍了如何使用asp.net(c#)将一组复选框的选定值存储到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用asp.net(c#)将一组复选框的选定值存储到数据库中。
例如:存入用户在注册时选择的爱好,进入数据库。
- bdhkrl。
How to store the selected values of a group of check boxes in to database using asp.net (c#).
Eg: storing the hobbies selected by the user while registering, in to database.
--bdhkrl.
推荐答案
请参考以下帖子
http://forums.asp.net/t/1675666.aspx?How+to+store+multiple+values+of+CheckBoxList +进+数据库 [ ^ ]
Please refer below post
http://forums.asp.net/t/1675666.aspx?How+to+store+multiple+values+of+CheckBoxList+into+Database[^]
hi Manoj,
您使用Mysql DB建议的上述链接中提供的解决方案。
MysqlDataReader问题与添加引用有关。
感谢您的建议。
--dotnetzone。
hi Manoj,
The solution available in the above link suggested by you worked with Mysql DB also.
The MysqlDataReader issue was related to adding reference.
Thanks for the suggestion.
--dotnetzone.
这篇关于如何使用asp.net(c#)将一组复选框的选定值存储到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文