Example #1
0
 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");
     }
 }
Example #2
0
 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;
     }
 }