The gridview is in a separate page, and the JS function is in a separate file
If so, then the below code would not work.
TotalChkBx = parseInt('<%= this.grdIndustry.Rows.Count %>');
In order to use the server delimiter
<%= %>
, you need to be on the same page.