protected void Button1_Click(object sender, EventArgs e)
 {
     if (CheckBox1.Checked == true && CheckBox2.Checked == true)
     {
         string sorgu = "insert into Uyeler (uyeAd,uyeSoyad,uyeKullaniciAdi,uyeSifre,uyeEmail) Values('" + TextBox1.Text.ToString() + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "')";
         ConnectionQuerry.ExecuteQueries(sorgu);
         Label2.Visible = true;
         Label1.Visible = false;
     }
     else
     {
         Label2.Text = " Seçimleri işaretleyiniz!";
     }
 }
Exemplo n.º 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Visible = true;
            string sorgu = "insert into Iletisim (iletisimAd,iletisimSoyad,iletisimEmail,iletisimKonu,iletisimIcerik) Values('" + txt_ad.Text + "','" + txt_soyad.Text + "','" + txt_email.Text + "','" + txt_konu.Text + "','" + txt_icerik.Text + "')";

            ConnectionQuerry.ExecuteQueries(sorgu);

            Label1.Text = "Mesajınız Başarıyla Gönderilmiştir.";

            txt_ad.Text     = "";
            txt_soyad.Text  = "";
            txt_email.Text  = "";
            txt_icerik.Text = "";
            txt_konu.Text   = "";
        }
Exemplo n.º 3
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            Label1.Text = Calendar1.SelectedDate.ToString();
            Label2.Text = Calendar2.SelectedDate.ToString();

            string ekle = "insert into Kiralama (kiralamaAlısYeri,kiralamaTeslimYeri,kiralamaAlısTarih,kiralamaTeslimTarih) Values('" + TextBox6.Text + "','" + TextBox1.Text + "','" + Label1.Text + "','" + Label2.Text + "')";

            ConnectionQuerry.ExecuteQueries(ekle);


            int fark;

            fark        = int.Parse(Label4.Text) - int.Parse(Label3.Text);
            Label5.Text = fark.ToString();

            int toplam = fark * 2;

            Label6.Text = toplam.ToString();
        }