Click here to Skip to main content
15,904,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

1 solution

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 .

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900