如何通过单击gridview行重定向到另一个页面

问题描述:

Hello All



我在我的页面中使用网格视图,我的要求是当我点击一行(在一行的任何地方)时,它应该被重定向到另一个页面,它将显示所选行的详细信息。



谢谢



我尝试了什么:



我在我的页面中使用网格视图,我的要求是当我点击一行(任何地方)在一行),它应该被重定向到另一个页面,它将显示所选行的详细信息。

Hello All

I'm using a grid view in my page and my requirement is that when I click on a row (anywhere on a row), it should be redirected to another page which will display the details of the row selected.

Thanks

What I have tried:

I'm using a grid view in my page and my requirement is that when I click on a row (anywhere on a row), it should be redirected to another page which will display the details of the row selected.

试试这个

点击网格视图行重定向到另一个页面 [ ^ ]

替换 ondblclick 事件使用 onclick 事件
try this
Redirect to another page by clicking on a gridview row [^]
replace the ondblclick event with onclick event