gridview列数据作为参数传递 [英] gridview column data passing as argument

查看:83
本文介绍了gridview列数据作为参数传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有5列的gridview.第一列显示带有超链接的ID.当我单击垂直行中的id列时,我希望打开另一个页面,该页面中的某些控件相对于在gridview中单击的列.现在,当我单击gridview中的id单元格时,我希望将该id值作为参数传递给storedprocedure,以便可以相对于gridview中的单击填充另一个页面.

i have a gridview with 5 columns . first column is displaying ID with hyperlink. when i click the id column in a perticular row then i want another page should open with some controls in that page fill with respect to the column that clicked in gridview. now when i click on id cell in the gridview i want that id value to be passed as argument to the storedprocedure so that i can populate my another page with respect to the click in gridview.

推荐答案

根据您所面临的问题,此链接应可帮助您完成以下操作: GridView中的LinkBut​​ton和ASP.NET中的QueryString可以传递数据 [ ^ ]

可以有更多方法将数据传递到其他页面,上面的链接显示了其中一种.
Well based on the issue you are facing, this link should lead you through: LinkButton in GridView and QueryString in ASP.NET to pass data[^]

There can be more ways to pass on data to other page, the above link shows one of them.


这篇关于gridview列数据作为参数传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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