﻿// JScript File
Sys.Application.add_init(AppInit);
 
function AppInit(sender) {
  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(End);
}
    
function End(sender, args) { 

    // Check to see if there's an error on this request. 
    if (args.get_error() != undefined) { 

        // Let the framework know that the error is handled, 
        // so it doesn't throw the JavaScript alert. 
        args.set_errorHandled(true); 
    } 
}