且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在usercontrol中找到usercontrol的GridView控件

更新时间:2022-06-12 01:51:58

您好Nirbhay ,



GridView是一个服务器端控件,JavaScript对GridView一无所知。此外,GridView在浏览器中呈现为表元素。所以你应该理想地在JavaScript中搜索table元素。



使用
Hi Nirbhay,

GridView is a server side control and JavaScript doesn't know anything about GridView. Moreover GridView is rendered as a table element in the browser. So you should be ideally searching for table element in JavaScript.

Use
document.getElementById('gv1')

查找JavaScript的方法表元素。

method of JavaScript to find the table element.