开发者

Adding client scripts for the server side event GridView.OnPageIndexChanging

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜