public void RaiseCallbackEvent(string eventArg) { string sResultado = ""; string[] aArgs = Regex.Split(eventArg, "@#@"); sResultado = aArgs[0] + @"@#@"; if (Session["GVT_IDRED"] == null) { _callbackResultado = aArgs[0] + @"@#@Error@#@SESIONCADUCADA"; return; } ; switch (aArgs[0]) { case ("getMiAmbito"): try { sResultado += "OK@#@" + CABECERAGV.ObtenerMiAmbito(Session["GVT_IDFICEPI"].ToString(), aArgs[1], aArgs[2], aArgs[3]); int[] nNotasAmbito = Profesional.nDesgloseNotasVisadas((int)Session["GVT_IDFICEPI"], aArgs[2], aArgs[3]); nNotasAmbitoAprobacion = nNotasAmbito[0]; nNotasAmbitoAceptacion = nNotasAmbito[1]; if (nNotasAmbitoAprobacion > 0) { sResultado += "@#@S"; } else { sResultado += "@#@N"; } if (nNotasAmbitoAceptacion > 0) { sResultado += "@#@S"; } else { sResultado += "@#@N"; } } catch (Exception ex) { sResultado += "Error@#@" + Errores.mostrarError("Error al obtener mis solicitudes.", ex); } break; } //3º Damos contenido a la variable que se envía de vuelta al cliente. _callbackResultado = sResultado; }