Having the GridView client control ID, I would like to get some ideas on how to count the GridView rows or at least be able to tell if there is at least one row on the Gridview the restriction is that I can only use client side code (JavaScript in this case)
+2
A:
var rowscount = document.getElementByID(<%=Gridview1.ClientID%>).rows.length;
alert(rowscount);
TStamper
2009-11-19 14:27:26
Oh nifty, I didn't know about ClientID, going to use that.
stimms
2009-11-19 14:36:17