protected void Page_Load(object sender, EventArgs e) { if (Null.IsNotNull(Request["q"])) { if (Null.IsNotNull(Session["Login"].ToString())) { Session["Login"] = null; Session["Name"] = null; Response.Redirect("~/signin.aspx"); } } if (Null.IsNotNull(Session["Login"]) || Null.IsNotNull(Session["Name"])) { RiverTableAdapter riverTableAdapter = new RiverTableAdapter(); DataSet ds = riverTableAdapter.GetRiverByStatus("ACTIVE"); if (ds.Tables[0].Rows.Count > 0) { Session["dt"] = ds.Tables[0]; PagingDataBind((DataTable)Session["dt"]); } } }