如何选择多下拉列表并通过C#保存到数据库SQL [英] How to select multi dropdownlist and save into database SQL by C#
本文介绍了如何选择多下拉列表并通过C#保存到数据库SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的!
我想让表单包含一个下拉列表,允许选择多值并保存到数据库中。 (但是选择了一个值,将通过记录插入数据库)
Plase帮助我!
解决方案
< blockquote>您可以使用复选框列表。使用for循环并将每个选中的值插入到DB中。
自己尝试一下。
如果卡住了,那么发布代码来帮助你...
Dear all!
I want make a form include a dropdownlist , allow select multi value and save into database. (But with a value selected, will insert into database by a record)
Plase help me!
解决方案
You can use Check box list for that. Use a for loop and for every checked value insert it into DB.
Try it by yourself.
If stuck then post the code to help you...
这篇关于如何选择多下拉列表并通过C#保存到数据库SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文