如何使用cheqbox在SQL Server中保存多人答案 [英] how to save multipal answer in sql server using cheqbox

查看:61
本文介绍了如何使用cheqbox在SQL Server中保存多人答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hell0我想将数据保存到用于cheqbox的数据库中,如果用户选择多手回答所有选择的答案存储到数据库,请给我解决方案...
谢谢你……

hell0 i want to save the data in the database using to cheqbox if the user select the multipal answer the all selected answer store to the database please give me solution...
thank u......

推荐答案

向sQL服务器发送任意数量的数据的明显方法是将其作为XML传递并使用OpenXML对其进行解析并将其放入您的数据库中.或者,您可以将SQL Server的每一位数据调用一次,但这是如此的简单明了,以至于我以为那不是您想要的.
The obvious way to send an arbitrary amount of data to sQL server is to pass it as XML and use OpenXML to parse it and put it in to your DB. Or you can call SQL Server one per bit of data, but that''s so obvious and easy that i assume that''s not what you want to do.


for int i = 0; i< chkbox.items.count; i ++>
{
如果chkbox.items [i] .selected == true,则
{
进行stufff数据库操作
}
}
for int i=0;i<chkbox.items.count;i++>
{
if chkbox.items[i].selected == true then
{
do your stufff database operation
}
}


这篇关于如何使用cheqbox在SQL Server中保存多人答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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