如何将列表框值传递给存储过程
问题描述:
在列表框中学生ID值如下
$
150
200
250
300
350
400
450
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[^]