如何在选择行时查看下一页中的gridview行 [英] how to view gridview row in next page when row selected

查看:73
本文介绍了如何在选择行时查看下一页中的gridview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,



正在使用C#,SqlServer 2005数据库处理asp.net gridview。



我有两个网页。



在第一页我有Gridview包含数据,在这个Gridview中我有所有的超链接(超链接命名为查看请求)行。



当我点击特定行的超链接时,只有这一特定行必须显示在gridview的第二页中。



请你帮我谢谢。

Hello Friends,

am working on asp.net gridview using C#,SqlServer 2005 database.

I have two webpages.

In first page I have Gridview with data in it, in this Gridview i have hyperlink(hyperlink named as View Request) for all the rows.

When i click this hyperlink for particular row, only this particular row must display in 2nd page in gridview.

Please can you help me thanks.

推荐答案

Gridview有Item命令事件,int这个获取所选行值然后重定向到其他页面。值,您可以通过会话或查询字符串。



http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx [<一个href =http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspxtarget =_ blanktitle =New Window> ^ ]
Gridview having Item command event, int this fetch selected row value then redirect to other page. Values, you can pass through the session or query string.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx[^]


您好请参考以下链接:

http://forums.asp.net/t/1113235.aspx [ ^ ]



问候

遗嘱
Hi Please refer to the following link:
http://forums.asp.net/t/1113235.aspx[^]

Regards
Wills


这篇关于如何在选择行时查看下一页中的gridview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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