protected void Button1_Click(object sender, EventArgs e)
 {
     DataSetTableAdapters.TBL_OGRENCİTableAdapter dt = new DataSetTableAdapters.TBL_OGRENCİTableAdapter();
     dt.OgrenciGuncelle(TxtOgrAd.Text, TxtOgrSoyad.Text, TxtOgrTelefon.Text, TxtOgrMail.Text, TxtOgrSifre.Text, TxtOgrFoto.Text,
                        Convert.ToInt32(TxtOgrid.Text));
     Response.Redirect("Default.aspx");
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        TextBox1.Text = Session["NUMARA"].ToString();
        DataSetTableAdapters.TBL_OGRENCİTableAdapter dt = new DataSetTableAdapters.TBL_OGRENCİTableAdapter();

        TextBox2.Text = "Ad Soyad: " + dt.OgrenciPaneliGetir(TextBox1.Text)[0].OGRAD + " " + dt.OgrenciPaneliGetir(TextBox1.Text)[0].OGRSOYAD;
        TextBox3.Text = "Mail Adresi: " + dt.OgrenciPaneliGetir(TextBox1.Text)[0].OGRMAİL;
        TextBox4.Text = "Telefon Numarası: " + dt.OgrenciPaneliGetir(TextBox1.Text)[0].OGRTELEFON;
        TextBox5.Text = "Şifre: " + dt.OgrenciPaneliGetir(TextBox1.Text)[0].OGRSIFRE;
        TextBox6.Text = "Fotoğraf Linki: " + dt.OgrenciPaneliGetir(TextBox1.Text)[0].OGRFOTOGRAF;
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         try
         {
             id            = Convert.ToInt32(Request.QueryString["OGRID"].ToString());
             TxtOgrid.Text = id.ToString();
             DataSetTableAdapters.TBL_OGRENCİTableAdapter dt = new DataSetTableAdapters.TBL_OGRENCİTableAdapter();
             TxtOgrAd.Text      = dt.OgrenciSec(id)[0].OGRAD;
             TxtOgrSoyad.Text   = dt.OgrenciSec(id)[0].OGRSOYAD;
             TxtOgrMail.Text    = dt.OgrenciSec(id)[0].OGRMAİL;
             TxtOgrTelefon.Text = dt.OgrenciSec(id)[0].OGRTELEFON;
             TxtOgrSifre.Text   = dt.OgrenciSec(id)[0].OGRSIFRE;
             TxtOgrFoto.Text    = dt.OgrenciSec(id)[0].OGRFOTOGRAF;
         }
         catch (Exception)
         {
             TxtOgrFoto.Text = "Link Girin";
         }
     }
 }
示例#4
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     DataSetTableAdapters.TBL_OGRENCİTableAdapter dt = new DataSetTableAdapters.TBL_OGRENCİTableAdapter();
     dt.OgrenciSifreGuncelle(TextBox2.Text, TextBox1.Text);
     Response.Redirect("OgrenciDefault.aspx?NUMARA=" + TextBox1.Text);
 }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DataSetTableAdapters.TBL_OGRENCİTableAdapter dt = new DataSetTableAdapters.TBL_OGRENCİTableAdapter();
     Repeater1.DataSource = dt.OgrenciListesi();
     Repeater1.DataBind();
 }