Exemple #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            DataSet1TableAdapters.TBL_OGRENCITableAdapter dt = new DataSet1TableAdapters.TBL_OGRENCITableAdapter();

            dt.OgrenciSifreGuncelle(TxtSifre1.Text, Textbox1.Text);
            Response.Redirect("OgrenciDefault.aspx?Numara=" + Textbox1.Text);
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DataSet1TableAdapters.TBL_OGRENCITableAdapter dt =
         new DataSet1TableAdapters.TBL_OGRENCITableAdapter();
     Repeater1.DataSource = dt.OgrenciListesi();
     Repeater1.DataBind();
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(Request.QueryString["OGRID"].ToString());

            DataSet1TableAdapters.TBL_OGRENCITableAdapter dt = new DataSet1TableAdapters.TBL_OGRENCITableAdapter();
            dt.OgrenciSil(id);
            Response.Redirect("Default.aspx");
        }
Exemple #4
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     DataSet1TableAdapters.TBL_OGRENCITableAdapter dt =
         new DataSet1TableAdapters.TBL_OGRENCITableAdapter();
     dt.OgrenciEkle(TxtOgrAd.Text, TxtOgrSoyad.Text, TxtOgrTelefon.Text,
                    TxtOgrMail.Text, TxtOgrSifre.Text, TxtOgrFoto.Text);
     Response.Redirect("Default.aspx");
 }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Textbox1.Text = Session["NUMARA"].ToString();

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

            Textbox2.Text = "Ad Soyad: " + dt.OgrenciPaneliGetir(Textbox1.Text)[0].OGRAD + ' ' + dt.OgrenciPaneliGetir(Textbox1.Text)[0].OGRSOYAD;
            Textbox3.Text = "Mail: " + dt.OgrenciPaneliGetir(Textbox1.Text)[0].OGRMAIL;
            TextBox4.Text = "Sifre: " + dt.OgrenciPaneliGetir(Textbox1.Text)[0].OGRSIFRE;
            TextBox5.Text = "Telefon: " + dt.OgrenciPaneliGetir(Textbox1.Text)[0].OGRTELEFON;
            TextBox6.Text = "Fotograf: " + dt.OgrenciPaneliGetir(Textbox1.Text)[0].OGRFOTOGRAF;
        }
Exemple #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == false)
            {
                try
                {
                    id            = Convert.ToInt32(Request.QueryString["OGRID"].ToString());
                    TxtOgrid.Text = id.ToString();
                    DataSet1TableAdapters.TBL_OGRENCITableAdapter dt = new DataSet1TableAdapters.TBL_OGRENCITableAdapter();

                    TxtOgrAd.Text      = dt.OgrenciSec(id)[0].OGRAD;
                    TxtOgrSoyad.Text   = dt.OgrenciSec(id)[0].OGRSOYAD;
                    TxtOgrMail.Text    = dt.OgrenciSec(id)[0].OGRMAIL;
                    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";
                }
            }
        }