protected void Page_Load(object sender, EventArgs e) { if (Session["New"] != null) { if (!IsPostBack) { WelcomeLabel.Text += Session["Email"].ToString(); DataSet ds = client.GetConfirmedFlats(Session["Email"].ToString().Trim()); GridViewAllFlats.DataSource = ds.Tables[0]; GridViewAllFlats.DataBind(); } } else { Response.Redirect("Register.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["New"] != null) { if (!IsPostBack) { WelcomeLabel.Text += Session["Email"].ToString(); DataSet ds = client.GetConfirmedFlats(Session["Email"].ToString().Trim()); GridViewAllFlats.DataSource = ds.Tables[0]; GridViewAllFlats.DataBind(); } } else { WelcomeLabel.Visible = false; LogOut.Visible = false; } }