protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //Valido Acceso if (Session["usr"] == null) { Server.Transfer("login.aspx"); } else { string paginaActual = System.IO.Path.GetFileName(Request.PhysicalPath); if (!oCo_Usuario.Comprobar_Permiso_Acceso((Usuario)Session["usr"], paginaActual)) { Response.Redirect("acceso_denegado.aspx", false); } } } try { //Cargo Checks de Niveles Educativos foreach (NivelEducativo Nivel in oCo_Niveles_Educaticos.TraerTodo()) { Herramientas.Generar_Check(Nivel.Id, Nivel.Nivel, false, PlaceChecksNiveles); //la clase herramientas esta dentro de este directorio. } } catch (Exception ex) { ((Site1)this.Master).Lanzar_Modal_info(ex.Message + " SEGUIMIENTO>>>" + ex.StackTrace); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //Valido Acceso if (Session["usr"] == null) { Server.Transfer("login.aspx"); } else { string paginaActual = System.IO.Path.GetFileName(Request.PhysicalPath); if (!usuarios.Comprobar_Permiso_Acceso((Usuario)Session["usr"], paginaActual)) { Server.Transfer("acceso_denegado.aspx"); } } try { //Cargo DropDown Rol DropRolUsuario.DataSource = null; DropRolUsuario.DataSource = Roles.TraerTodos(); DropRolUsuario.DataTextField = "Nombre"; DropRolUsuario.DataValueField = "Id"; DropRolUsuario.DataBind(); DropRolUsuario.Items.Insert(0, new ListItem("", "-1")); //Cargo DropDown Institucion DropDownInstitucion.DataSource = null; DropDownInstitucion.DataSource = instituciones.TraerTodos(); DropDownInstitucion.DataTextField = "Nombre"; DropDownInstitucion.DataValueField = "Id"; DropDownInstitucion.DataBind(); DropDownInstitucion.Items.Insert(0, new ListItem("", "-1")); } catch (Exception ex) { ((Site1)this.Master).Lanzar_Modal_info(ex.Message + " SEGUIMIENTO>>>" + ex.StackTrace); } } Herramientas.Generar_Check(1, "Pertenece a Institucion Educativa", true, PlaceInstitucion); }
protected void Page_Load(object sender, EventArgs e) { //Valido Acceso if (Session["usr"] == null) { Server.Transfer("login.aspx"); } else { string paginaActual = System.IO.Path.GetFileName(Request.PhysicalPath); if (!oCo_Usuarios.Comprobar_Permiso_Acceso((Usuario)Session["usr"], paginaActual)) { Server.Transfer("acceso_denegado.aspx"); } } Master.Limpiar_Modal(); //genero el check de "Activo" Herramientas.Generar_Check(1, "Activo", true, PlaceCheckActivo); }