protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["urunID"] == null)
     {
         Response.Redirect("Anasayfa.aspx");
     }
     else
     {
         String  UrunID = Request.QueryString["urunID"];
         Yonetim goster = new Yonetim();
         goster.urunGoster(UrunID);
         while (goster.dr.Read())
         {
             urunAd.Text        = goster.dr["URUN_ADI"].ToString();
             urunMarka.Text     = goster.dr["MARKA_ADI"].ToString();
             urunModel.Text     = goster.dr["MODEL_ADI"].ToString();
             urunFiyat.Text     = goster.dr["URUN_FIYAT"].ToString();
             urunIndirim.Text   = goster.dr["INDIRIM_ORANI"].ToString();
             urunSatis.Text     = goster.dr["INDIRIMLI_FIYAT"].ToString();
             urunImage.ImageUrl = goster.dr["RESIM_YOL"].ToString();
         }
         goster.baglantiKapat();
         if (IsPostBack)
         {
             adet             = Double.Parse(kacAdet.SelectedValue);
             Tutar            = adet * (Double.Parse(urunSatis.Text));
             toplamTutar.Text = Tutar.ToString();
         }
     }
 }
 private void OgrenciEkle_Load(object sender, EventArgs e)
 {
     yonetim.YatakGoster();
     YatakDataGridView.DataSource = yonetim.dt;
     yatakId = yonetim.yatakId;
     yonetim.baglantiKapat();
 }
 private void Ogrenci_Load(object sender, EventArgs e)
 {
     if (login.label3.Text != "1")
     {
         button3.Visible = false;
     }
     // TODO: This line of code loads data into the 'dataSet9.OGRENCI' table. You can move, or remove it, as needed.
     this.oGRENCITableAdapter.Fill(this.dataSet9.OGRENCI);
     yonetim.YatakGoster();
     dgYatak.DataSource = yonetim.dt;
     id = yonetim.yatakId;
     yonetim.baglantiKapat();
 }
Beispiel #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Yonetim kulGoster = new Yonetim();

            kulGoster.kullaniciGoster(Session["kullaniciID"].ToString());
            while (kulGoster.dr.Read())
            {
                kullaniciAd.Text = kulGoster.dr["KULLANICI_AD"].ToString();
                soyad.Text       = kulGoster.dr["KULLANICI_SOYAD"].ToString();
                ePosta.Text      = kulGoster.dr["KULLANICI_EPOSTA"].ToString();
                sifre.Text       = kulGoster.dr["KULLANICI_SİFRE"].ToString();
                cinsiyet.Items.Add(kulGoster.dr["KULLANICI_CINSIYET"].ToString());
                yas.Text   = kulGoster.dr["KULLANICI_YAS"].ToString();
                telNo.Text = kulGoster.dr["KULLANICI_TELEFON_NO"].ToString();
            }
            kulGoster.baglantiKapat();
        }
Beispiel #5
0
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Label10.Text = kulIDropDown.SelectedValue.ToString();
            }
            yonet.baglantiAc();
            SqlCommand cmd = new SqlCommand("SELECT * FROM ADRES WHERE KULLANICI_ID = @KulID", yonet.baglan);

            cmd.Parameters.AddWithValue("@KulID", kulIDropDown.SelectedValue);
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            DataTable      dt = new DataTable();

            da.Fill(dt);
            repeaterAdres.DataSource = dt;
            repeaterAdres.DataBind();
            yonet.baglantiKapat();
        }