Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["SessionKey"] != null)
     {
         laName.Text = String.Concat(client.GetUserInfo(Session["SessionKey"].ToString()).Name, ",");
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["SessionKey"] == null)
     {
         Response.Redirect("~/Error.aspx");
     }
     else
     {
         if (!Page.IsPostBack) //IsPostBack, sayfanın geri postalanması durumunu yönetir.
         {                     //Bu yapı sayfanın ilk kez yüklenmesi ile sonradan postback işlemi sonucunda yüklenmesi arasındaki farkı yönetmek için kullanılır.
             UserInfo info = client.GetUserInfo(Session["SessionKey"].ToString());
             teName.Text             = info.Name;
             teLastName.Text         = info.LastName;
             teSurname.Text          = info.Surname;
             teNationaltyTypeCd.Text = info.NationalityTypeCd;
         }
     }
 }