コード例 #1
0
        protected void btnMesaj_Click(object sender, EventArgs e)
        {
            DbBaglanti     db        = new DbBaglanti();
            KullaniciModel kullanici = KullaniciModel.getKullanici();

            db.DataTableGetir("MESAJ_GONDER '" + kullanici.KullaniciAdi + "','" + kullanici_adi + "','" + tbBaslik.Text + "','" + tbMesaj.Text + "'");
            tbBaslik.Text = "";
            tbMesaj.Text  = "";
        }
コード例 #2
0
        public ActionResult UyeKayitAction(UyeKayitModel _UyeModel)
        {
            DbBaglanti dbBaglanti = new DbBaglanti();
            DataTable  dtResult   = dbBaglanti.DataTableGetir("UYE_EKLE '" + _UyeModel.BireyselUye.AD + "','" + _UyeModel.BireyselUye.SOYAD + "','"
                                                              + _UyeModel.BireyselUye.CINSIYET + "','" + _UyeModel.BireyselUye.TEL_NO + "'," + "'" + _UyeModel.BireyselUye.EMAIL + "','" +
                                                              _UyeModel.BireyselUye.ADRES + "','" + _UyeModel.BireyselUye.IL_ID + "','" + _UyeModel.BireyselUye.ILCE_ID + "','" +
                                                              _UyeModel.Kullanici.KULLANICI_ADI + "','" + _UyeModel.Kullanici.SIFRE + "'");

            if (dtResult.Rows[0]["RESULT"].ToString() == "KAYIT BAŞARILI")
            {
                ViewData["result"] = dtResult.Rows[0]["RESULT"].ToString();
                return(View("Index"));
            }
            else
            {
                ViewData["result"] = dtResult.Rows[0]["RESULT"].ToString();
                return(View("UyeKayit"));
            }
        }