protected void Page_Load(object sender, EventArgs e) { if (Session["UserPrivilegeId"] == null) { Response.Redirect("/"); } if (Session["UserPrivilegeId"].ToString() != "0" && Session["UserPrivilegeId"].ToString() != "1") { Response.Redirect("/"); } if (!this.IsPostBack) { function.GetListLevel(txtLevel, int.Parse(Session["UserPrivilegeId"].ToString())); BindData(); } }