protected void btnGrabarPerfil_OnClick(object sender, EventArgs e) { Int32 retorno; SeguridadBL oSeguridadBL = new SeguridadBL(); oSeguridadBL.ErrorEvent += new SeguridadBL.ErrorDelegate((Master as Seguridad).Transaction_ErrorEvent); try { String cadena = String.Empty; String[] arrCodigos; arrCodigos = this.txhCodOpciones.Value.Trim().Split('|'); /*Insertamos detalle de opciones por perfil*/ String XML = Global.ObtenerXml(this.txhCodOpciones.Value.Trim(), this.txhIndOpciones.Value.Trim()); retorno = oSeguridadBL.InsertUsuarioOpcion(this.usuarioID, XML, Profile.Usuario.CUSR_ID, Profile.Estacion, Profile.UsuarioRed); if (retorno > 0) { CargaOpcionesModulo(); JavaScriptHelper.Alert(this, Message.keyGrabar, String.Empty); } else { JavaScriptHelper.Alert(this, Message.keyErrorGrabar, String.Empty); } } catch { } }