protected void Kaydet_Click(object sender, EventArgs e) { kll.insert(txtAd.Text + " " + txtSoyad.Text, DAL.toolkit.SHA1Hash_Encryption(txtSifre.Text), txtEmail.Text, Convert.ToInt32(drpYetki.SelectedValue)); kullanici kllnc = kll.receiveList().LastOrDefault(); // son kayıt çekiliyor tlf.insert(kllnc.kullaniciId, txtGsm1.Text); Response.Redirect("~/management/anaYonetim/kullaniciYonetimi/kullanici.aspx?page=listele&tip=uye"); }
protected void dogrula_Click(object sender, EventArgs e) { if (Session["yeniKullanici"] != null) { string[] array = Session["yeniKullanici"] as string[]; if (array[4] == txtOnayKodu.Text) { kll.insert(array[0], array[3], array[2], 4); kullanici kllnc = kll.receiveList().Last(); tlf.insert(kllnc.kullaniciId, array[1]); Response.Redirect("~/giris-yap.aspx"); } else { Panel pnl = new Panel(); pnl.Attributes["class"] = "alert alert-danger"; Label lbl = new Label(); lbl.Text = "Onay kodu yanlış, Lütfen kontrol ediniz"; pnl.Controls.Add(lbl); onay.Controls.Add(pnl); } } if (Session["unique-site-user"] != null) { if (Session["mobile-act"] != null) { kullanici _authority = (kullanici)Session["unique-site-user"]; string[] array = Session["mobile-act"] as string[]; if (array[1] == txtOnayKodu.Text) { tlf.update(_authority.kullaniciId, array[0], 1); } Response.Redirect("~/profil/profil.aspx?control=cep-telefonu"); } else { Panel pnl = new Panel(); pnl.Attributes["class"] = "alert alert-danger"; Label lbl = new Label(); lbl.Text = "Onay kodu yanlış, Lütfen kontrol ediniz"; pnl.Controls.Add(lbl); onay.Controls.Add(pnl); } } }