当用户单击 gridview 行时,如何调用隐藏函数的代码?
我在 aspx 页面中有一个 gridview,后面有 C# 代码。
当用户单击行上的任意位置时,有没有办法运行代码隐藏函数?现在,我使用选择按钮。但随后用户必须单击该按钮。我希望用户能够单击行上的任意位置,以在位于主网格视图旁边的另一个网格视图中显示其详细信息。
这里有一些关于如何做到这一点的想法?
谢谢!
I have a gridview in an aspx page with c# code behind.
Is there a way how i can run a code behind function when the user clicks anywhere on a row? For now, i use the select button. But then the user has to click on that button. And i want to user to be able to click anywhere on a row to show it's details in another gridview that is located next to the main gridview.
Some ideas here on how to do this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个
try this