开发者

Adding client scripts for the server side event GridView.OnPageIndexChanging

开发者 https://www.devze.com 2023-01-01 06:07 出处:网络
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开

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;
})
0

精彩评论

暂无评论...
验证码 换一张
取 消