private bool isformvalid() { if (TxtUName.Text == "") { Response.Write("<script> alert ('Kullanıcı Adı Giriniz'); </script>"); TxtUName.Focus(); return(false); } else if (TxtPass.Text != TxtCPass.Text) { Response.Write("<script> alert ('Şifreler Aynı Olmalı'); </script>"); TxtPass.Focus(); return(false); } else if (TxtMail.Text == "") { Response.Write("<script> alert ('Email Adresi Giriniz'); </script>"); TxtMail.Focus(); return(false); } else if (TxtName.Text == "") { Response.Write("<script> alert ('Ad Soyad Giriniz'); </script>"); TxtName.Focus(); return(false); } return(true); }
private void TxtTelefono_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { TxtMail.Focus(); } }
protected void BtnRegister_Click(object sender, EventArgs e) { if ((TxtPhone.Text == "") && (TxtPwd.Text == "") && (TxtMail.Text == "")) { TxtPhone.BorderColor = System.Drawing.Color.Red; TxtPwd.BorderColor = System.Drawing.Color.Red; TxtMail.BorderColor = System.Drawing.Color.Red; TxtMail.Focus(); } else { Register(); WelcomeMail(); SendSms(); Response.Redirect("login"); } }
private void Login_Shown(object sender, EventArgs e) { TxtMail.Focus(); }