protected void Page_Load(object sender, EventArgs e) { int perfil = (int)(Session["perfil"]); Permisos = dao_contrato.ControlPaginas("Reportes", perfil.ToString()); if (Permisos.VER == false || Permisos.CREAR == false) { Response.Write("<script language='javascript'> alert('No posee los permisos necesarios'); window.location.href = 'Home.aspx'; </script>"); } }
protected void Page_Load(object sender, EventArgs e) { int perfil = (int)(Session["perfil"]); Permisos = dao_contrato.ControlPaginas("Contratos", perfil.ToString()); if (Permisos.VER == false) { Response.Write("<script language='javascript'>alert('hello');window.location.href = 'Home.aspx';</ script > "); Response.Redirect("Home.aspx", false); } }