To get GridView page size in jQuery you can do following.
Step 1: In the server side, declare a page level public variable like
public string _pageSize = string.Empty;
Step 2: Set its value in the method like this
_pageSize = GridView1.PageSize.ToString();
Step 3: In .aspx or view page write following
<script
var pageSize = '<%= _pageSize %>';
</script>
This will give you pageSize variable in the JavaScript that you can use in jQuery.
Hope this helps.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Rajesh_Kumar, if this helps please login to Mark As Answer. | Alert Moderator