protected void UyeOl_Click(object sender, EventArgs e) { if (uyelikSozlesme.Checked) { if (kll.kullanici_varmi(txtEmail.Text, DAL.toolkit.Number_Remover(txtTlf.Text))) { string onay_Kod = DAL.toolkit.guvenlik_kodu(); string[] dizi = { txtAd.Text + " " + txtSoyad.Text, DAL.toolkit.Number_Remover(txtTlf.Text), txtEmail.Text, DAL.toolkit.SHA1Hash_Encryption(txtSifre.Text), onay_Kod }; Session["yeniKullanici"] = dizi; guvenlib.insert(DAL.toolkit.Number_Remover(txtTlf.Text), onay_Kod); List <string> numara = new List <string>(); numara.Add(DAL.toolkit.Number_Remover(txtTlf.Text)); string mesaj = "Onay Kodunuz : " + onay_Kod + "\nGuvenliginiz icin bu kodu kimseyle paylasmayiniz."; if (DAL.toolkit.sms_gonder(mesaj, numara)) { Response.Redirect("~/cep-aktivasyon.aspx"); } else { Panel pnl = new Panel(); pnl.Attributes["class"] = "alert alert-danger"; Label lbl = new Label(); lbl.Text = "Gönderme Başarısız"; pnl.Controls.Add(lbl); uyelikField.Controls.AddAt(0, pnl); } } else { Panel pnl = new Panel(); pnl.Attributes["class"] = "alert alert-danger"; Label lbl = new Label(); lbl.Text = "Bu cep telefonu veya email zaten mevcut !"; pnl.Controls.Add(lbl); uyelikField.Controls.Add(pnl); } } else { Panel pnl = new Panel(); pnl.Attributes["class"] = "alert alert-danger"; Label lbl = new Label(); lbl.Text = "Lütfen üyelik sözleşmesini okuyup kabul edin."; pnl.Controls.Add(lbl); uyelikField.Controls.AddAt(0, pnl); } }