Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (Session["UserID"] != null)
                {
                    //string Name_Hebrwo = "";
                    Garge  garge = new Garge(Convert.ToInt32(Session["UserID"]));
                    string city  = garge.get_city();
                    Set_Wolcome_Time();
                    user_name.Text       += garge.Get_Full_Name();
                    user_name2.Text       = garge.Get_Full_Name();
                    user_name3.Text       = garge.GetNameGarga();
                    UserName4.Text        = garge.GetFirstName();
                    City_Name.Text        = city;
                    City_Name_Hebrwo.Text = city;
                    Useremail.Text        = garge.GetEmail();
                    Image1.ImageUrl       = garge.GetimageUrl();
                    Image2.ImageUrl       = garge.GetimageUrl();
                    Image3.ImageUrl       = garge.GetimageUrl();
                    RendarCard();
                }

                else
                {
                    Response.Redirect("~/error-404.html");
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", ex.ToString(), true);
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["UserID"] != null)
     {
         Garge garge = new Garge(Convert.ToInt32(Session["UserID"]));
         profileImage.ImageUrl             = garge.GetimageUrl();
         FnameID.Attributes["placeholder"] = garge.GetFirstName();
         LnameID.Attributes["placeholder"] = garge.GetLastName();
     }
 }