在GridView的分页回调之后执行JavaScript [英] Executing JavaScript after a GridView's paging callback

查看:134
本文介绍了在GridView的分页回调之后执行JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助!



我在点击网格视图的寻呼机页面后尝试调用javascript。但是我无法执行JS代码。



我几乎尝试了所有类似的东西 -



Page.ClientScript.RegisterClientScriptBlock(Me.GetType,myScript,alert(''Done with paging'');,True)



我试过在运行时也添加属性。



问题是因为网格在更新面板中。 (我猜)。但是在GridView的分页回调之后可能有一些方法可以调用JS。





请帮助。它们紧急

Please help!

I am tryin to call a javascript after clicking the pager pages of a grid view. But i am not able to get the JS code executed.

I have tried almost everything like-

Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "myScript", "alert(''Done with paging'');", True)

I have tried to add the attributes at run time also.

The issue is because the grid is in Update panel. (I guess).But there might be some way to call JS after GridView''s paging callback.


Please help.Its Urgent

推荐答案

谢谢Mentords。



我知道了。



函数pageLoad(sender,args)可以在每次加载/回发中调用(同步或异步)。



我有尝试了几乎eveything但最终它工作。



:)
Thanks Mentords.

I got it.

function pageLoad(sender, args) can be used as it is called in every load/postback(synchronous or asynchronous).

I have tried almost eveything but finally it worked .

:)


这篇关于在GridView的分页回调之后执行JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆