,
Share this with your friends 
 

Event after every asp.net ajax request

10 ratings Views 320 
Author: krish (krishna kumar)  View Profile |  View other solutions by this author

Question / Problem


Client side event after every asp.net ajax request, do some action on java script like call java script function after every ajax request.

Solution

1. Add the following code in design
2. write the code you want after every ajax request your code will be exected.

<script>

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestEventHandler);
function EndRequestEventHandler(sender, args) {
// your code comes here
alert('test');
}

</script>

Applies to

ASP.Net 3.5 ,Asp.Net 4.0, Asp.Net 2.0

Rank It

Login to rank it

Report


Advertisement