如何将列表框值传递给存储过程 [英] how to pass listbox values into stored procedure

查看:55
本文介绍了如何将列表框值传递给存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在列表框中学生ID值如下





$

150

200

250

300

350

400

450 < br $>




i想要使用存储过程来检索列表框值。

我怎么能用asp做。 net使用c#。



Rgds,

Narasiman P

In Listbox student id values as follows

50
100
150
200
250
300
350
400
450


i want to retrive the listbox value using stored procedure.
for that how can i do in asp.net using c#.

Rgds,
Narasiman P

推荐答案

Pass它以逗号分隔的字符串: 50,100,150,... 而不是按照这个提示:在SQL IN子句中使用逗号分隔值参数字符串 [ ^ ]
Pass it as a comma separated string: 50,100,150,... and than follow this tip: Using comma separated value parameter strings in SQL IN clauses[^]


这篇关于如何将列表框值传递给存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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