GridColumn作为其他存储过程的参数 [英] GridColumn as a Parameter to other stored Procedure

查看:97
本文介绍了GridColumn作为其他存储过程的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个加载数据的asp.net网格.该列之一是"ServerID"和Value = 147.因此,如果我双击"147"的列值.我需要捕获该值并将该值发送到名为"Exec usp_GetServerList"的存储过程.

通过使用该值,我将在页面的另一边检索某些数据

请帮助我.

I have a asp.net grid with loaded data.One of the Column is "ServerID" & Value=147. So If i Doubleclick on the colum value which is "147". I need to capture that value and send that value to a stored procedure called "Exec usp_GetServerList".

By using that value am going to retrive some data in anothe page

Please help me .

推荐答案

有几种方法可以做到这一点.如果使用服务器端的东西,那么我将创建一个带有链接按钮的选择命令列模板.将serverId值绑定到linkbutton的标签,并在回发时可以获取id值.
There are a few ways of doing this. If using serverside stuff then I would create a select command column template with a linkbutton in it. bind the serverId value to the tag of the linkbutton and on postback you will be able to get the id value.


这篇关于GridColumn作为其他存储过程的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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