Is there a matching client side event that is fired before or after OnPageIndexChanging
is raised?
Such as the OnClientClick
, I would like to append a script when the paging numbers / arrows are cli开发者_JAVA技巧cked.
Is it possible, of so; how?
I presume you are speaking of the DataGrid/GridView component. There is no such built-in even but you can easily hook a JavaScript event handler for the pager links. Here is an example using jQuery:
$('#GridView1 td table a').live('click', function() {
var pagerLink = this;
})
精彩评论