Exemplo n.º 1
0
        protected void btnAra_Click(object sender, EventArgs e)
        {
            if (txtAra.Text == string.Empty)
            {
                lblAra.Text = "Lüffen bir isim giriniz.";
            }

            else
            {
                Response.Redirect("AdminYonetimi.aspx?aranacak=" + Seo.Temizle(txtAra.Text));
            }
        }
Exemplo n.º 2
0
        protected void BtnGiris_Click(object sender, EventArgs e)
        {
            DataRow drGiris = klas.GetDataRow("Select * from Kullanici Where Email='" + Seo.Temizle(txtKullaniciGiris.Text) + "' and  Sifre='" + Seo.Temizle(txtSifre.Text) + "' and GrupId=29");

            if (drGiris != null)
            {
                Session["KullaniciId"] = drGiris["KullaniciId"].ToString();
                Response.Redirect("Default.aspx");
            }
            else
            {
                lblBilgi.Text = "Kullanıcı Adı veya Şifre Hatalı";
            }
        }