示例#1
0
 protected void OnClick(object sender, EventArgs e)
 {
     try
     {
         UcLogIn.DesbloquearUsuario();
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         Alerta = _lstError;
     }
 }
示例#2
0
 protected void btnCerramodalSessionAbierta_OnClick(object sender, EventArgs e)
 {
     try
     {
         UcLogIn.ResetCaptcha();
         ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "ScriptClose", "CierraPopup(\"#modalSessionAbierta\");", true);
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         Alerta = _lstError;
     }
 }
示例#3
0
 protected void lbtnProveedorArea_OnClick(object sender, EventArgs e)
 {
     try
     {
         int areaSeleccionada = Convert.ToInt32(((LinkButton)sender).CommandArgument);
         Session["AreaSeleccionada"] = areaSeleccionada;
         rptMenu.DataSource          = _servicioSeguridad.ObtenerMenuPublico((int)BusinessVariables.EnumTiposUsuario.ProveedorInvitado, areaSeleccionada, areaSeleccionada != 0);
         rptMenu.DataBind();
         UcLogIn.AutenticarUsuarioPublico((int)BusinessVariables.EnumTiposUsuario.ProveedorInvitado);
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         AlertaGeneral = _lstError;
     }
 }