Example #1
0
 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"]))
     {
         WaterLevelTableAdapter WaterLevelTableAdapter = new WaterLevelTableAdapter();
         DataSet ds = WaterLevelTableAdapter.GetWaterLevelByStatus("ACTIVE");
         if (ds.Tables[0].Rows.Count > 0)
         {
             Session["dt"] = ds.Tables[0];
             PagingDataBind((DataTable)Session["dt"]);
         }
     }
 }