示例#1
0
 //int id;
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         TextBox1.Text = Session["ID"].ToString();
         DataSet1TableAdapters.tblKullanicilarTableAdapter dt = new DataSet1TableAdapters.tblKullanicilarTableAdapter();
         TextBox2.Text = dt.OgrenciPaneliGetir(int.Parse(TextBox1.Text))[0].Mail;
         TextBox3.Text = dt.OgrenciPaneliGetir(int.Parse(TextBox1.Text))[0].Tel;
     }
 }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TextBox1.Text = Session["ID"].ToString();

            DataSet1TableAdapters.tblKullanicilarTableAdapter dt = new DataSet1TableAdapters.tblKullanicilarTableAdapter();

            TextBox2.Text = "Ad Soyad:" + " " + dt.OgrenciPaneliGetir(int.Parse(TextBox1.Text))[0].Ad + " " + dt.OgrenciPaneliGetir(int.Parse(TextBox1.Text))[0].Soyad;
            TextBox3.Text = "Mail:" + " " + dt.OgrenciPaneliGetir(int.Parse(TextBox1.Text))[0].Mail;
            TextBox4.Text = "Telefon:" + " " + dt.OgrenciPaneliGetir(int.Parse(TextBox1.Text))[0].Tel;
        }