protected void Page_Load(object sender, EventArgs e)
 {
     if (IsPostBack == false)
     {
         ccode                     = ccg.GetCode();
         LblCaptcha.Text           = ccode;
         LblCaptcha.Font.Strikeout = true;
         LblCaptcha.Font.Size      = FontUnit.Large;
     }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (IsPostBack == false)
     {
         capcode         = CaptchaGenerator.GetCode();
         LblCaptcha.Text = capcode;
     }
 }
Ejemplo n.º 3
0
    protected void BtnSubmit_Click(object sender, EventArgs e)
    {
        code = cm.GetCode();
        string cmd = "Select passwd, mobileno from Registration where emailid='" + TxtEmail.Text + "'";

        dt = dm.ExecuteSelect(cmd);
        if (dt.Rows.Count > 0)
        {
            string      msg = "Your OTP is" + code;
            MySMSSender ms  = new MySMSSender();
            bool        x   = ms.SendMySMS(dt.Rows[0][1].ToString(), msg);
            Response.Write("<script>alert('Code is'+'" + code + "')</script>");
            epass           = dt.Rows[0][0].ToString();
            BtnOk.Visible   = true;
            TxtCode.Visible = true;
        }
        else
        {
            Response.Write("<script>alert('Invalid user....')</script>");
        }
    }
Ejemplo n.º 4
0
 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     capcode         = CaptchaGenerator.GetCode();
     LblCaptcha.Text = capcode;
 }