protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UsFuns uf = new UsFuns(); User tmp = uf.UsrInfo(Session["login"].ToString()); if (Session["login"] == null) { Response.Write("<script language='javascript'>alert('Response Timeout, Please Try Again.'); location.href='login.aspx'</script>"); } else if (tmp.Admin == '0') { SqlFuns sf = new SqlFuns(); bindusr(sf.SearchUserAll()); } else { Response.Write("<script language='javascript'>alert('Response Timeout, Please Try Again.'); location.href='login.aspx'</script>"); } } }