protected void Page_Load(object sender, EventArgs e) { captcha cap = new captcha(); Session["captcha"] = cap.VerifyCodeText.ToLower(); cap.OutputImage(); }
public static string ShowCaptcha() { captcha captchaform = new captcha(); captchaform.ShowDialog(); captchaform.AcceptButton = captchaform.button1; return(captchaform.textBox1.Text); }