如何在按钮单击事件中查找嵌套的Gridview ID [英] How to Find Nested Gridview Id in Button Click Event

查看:72
本文介绍了如何在按钮单击事件中查找嵌套的Gridview ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在gridview之外的按钮单击事件中查找嵌套的gridview控件ID.

How to find nested gridview control id in button click event which outside of gridview.

推荐答案

客户端上不存在gridview.这是一张桌子.您可以检查您的SQL并找到要自动生成的ID,然后使用它们,或者可以遍历DOM以查找嵌套表,也可以通过搜索表中的内容进行搜索.总的来说,最好使用中继器来发出自己的表,然后才可以完全控制输出.
A gridview does not exist on your client. It''s a table. You can examine your SQL and find the ids that are being auto generated, and then use those, or you can iterate over your DOM looking for nested tables, or you can search via searching for something inside the table. Overall, it''s better to use repeaters to emit your own tables, then you have full control over the output.


这篇关于如何在按钮单击事件中查找嵌套的Gridview ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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