﻿/* Controlando llamadas asincronas*/
Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(IniciaRequest);
var _Instance = Sys.WebForms.PageRequestManager.getInstance();
function IniciaRequest(sender, arg) {
    // INICIALIZACION DEL REQUEST
    var elem = arg.get_postBackElement();
    if (_Instance.get_isInAsyncPostBack()) {

        //window.alert("Existe un proceso en marcha. Espere...");
        //obviamos el mensaje.
        arg.set_cancel(true);

    }
}
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();