protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) { throw new AutenticacionExcepcionBO(); } if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') { throw new AccessDeniedExceptionBO(); } boActividad = new ActividadBO(); boSocio = new SocioBO(); if (!IsPostBack) //false = primera vez que se carga, true= segunda vez, se cambiaron los datos { cargarDatosSocioEnVista(); //listaActividades = boActividad.GetList(); //loadEditActividad(); //loadActividadList(); } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) { throw new AutenticacionExcepcionBO(); } if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') { throw new AccessDeniedExceptionBO(); } boActividad = new ActividadBO(); boSocio = new SocioBO(); if (!Page.IsPostBack) { //listaActividades = boActividad.GetList(); //llenarViewActividades(); } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) { throw new AutenticacionExcepcionBO(); } if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') { throw new AccessDeniedExceptionBO(); } socioBO = new SocioBO(); switch (Request.QueryString["accion"]) { case "actualizarEstado": actualizarEstado(Int32.Parse(Request.QueryString["id"]), Int32.Parse(Request.QueryString["estadoActual"])); break; case "eliminar": //elmininarSocio(Int32.Parse(Request.QueryString["id"])); break; default: listaSocios = socioBO.GetList(); break; } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }