如何在ArrayList中存储复选框检查的值以及如何使用C#将此ArrayList发送到存储过程 [英] How to store the checkbox checked values in ArrayList and how send this ArrayList to stored procedure using C#

查看:68
本文介绍了如何在ArrayList中存储复选框检查的值以及如何使用C#将此ArrayList发送到存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,任何人都可以帮助我

如何在ArrayList中存储复选框选中的值以及如何使用C#将此ArrayList发送到存储过程我的数据库是sql server

Hi all can anyone help me out
How to store the checkbox checked values in ArrayList and how send this ArrayList to stored procedure using C# my database is sql server

推荐答案

遍历复选框列表并将这些值添加到数组列表中。



将此arraylist传递给SP是不可能的。

使用分号或其他字符分隔arraylist中的文本,然后将其发送给SP。
Loop through the checkbox list and add these values to the array list.

Passing this arraylist into an SP is not directly possible.
Delimit the text in the arraylist using a semi-colon or some other character and then send it over to the SP.


这篇关于如何在ArrayList中存储复选框检查的值以及如何使用C#将此ArrayList发送到存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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