Beispiel #1
0
 private void BindStudentInfo()
 {
     try
     {
         DataTable dt = new DataTable();
         objML_StudentProfile.ID = Session["UserName"].ToString();
         dt = objBL_StudentProfile.BL_BindStudentInfo(objML_StudentProfile);
         if (dt.Rows.Count > 0)
         {
             txtEmail.Text     = dt.Rows[0]["E_mail"].ToString();
             txtPhoneNo.Text   = dt.Rows[0]["Phone"].ToString();
             txtFirstName.Text = dt.Rows[0]["First_Name"].ToString();
             txtLastName.Text  = dt.Rows[0]["Last_Name"].ToString();
             btnSave.Text      = "Update";
         }
     }
     catch
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Connection lost')", true);
     }
 }