且构网

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

如何使用jQuery算在asp.net在GridView的行

更新时间:2023-12-06 13:56:34

A GridView控件只是呈现为一个标准的HTML表格,所以只算次数 TR 在GridView下元素:

A GridView is just rendered as a standard HTML table, so just count the number of tr elements under the GridView:

var totalRows = $("#<%=GridView1.ClientID %> tr").length;