protected void Page_Load(object sender, EventArgs e) { String vEx = Request.QueryString["ex"]; if (!Page.IsPostBack) { if (Convert.ToBoolean(Session["AUTH"])) { generales vGenerales = new generales(); DataTable vDatos = (DataTable)Session["AUTHCLASS"]; if (!vGenerales.PermisosRecursosHumanos(vDatos)) { Response.Redirect("/default.aspx"); } HFSubirPDF.Value = string.Empty; CargarPuesto(); if (vEx != null) { if (vEx.Equals("1")) { ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "Pop", "window.alert('" + "Archivo subido con exito" + "')", true); } else if (vEx.Equals("2")) { ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "Pop", "window.alert('" + "No se encontró archivo." + "')", true); } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Convert.ToBoolean(Session["AUTH"])) { generales vGenerales = new generales(); DataTable vDatos = (DataTable)Session["AUTHCLASS"]; if (!vGenerales.PermisosRecursosHumanos(vDatos)) { Response.Redirect("/default.aspx"); } CargarPuesto(); } } }
protected void Page_Load(object sender, EventArgs e) { vConexion = new db(); if (!Page.IsPostBack) { if (Convert.ToBoolean(Session["AUTH"])) { generales vGenerales = new generales(); DataTable vDatos = (DataTable)Session["AUTHCLASS"]; if (!vGenerales.PermisosRecursosHumanos(vDatos)) { Response.Redirect("/default.aspx"); } Cargar(); } } DDLEmpleado.CssClass = "fstdropdown-select form-control"; }