Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

create user wizard control ignores checking captcha

$
0
0

Hi friends ,

I have to check captcha code if wrong, prevent user register, but create user wizard ingores it, why?

protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {
        TextBox captchatxt = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("TextBox1");
        Literal wrongcaptcha = (Literal)CreateUserWizardStep1.ContentTemplateContainer.FindControl("WrongCaptcha");
        if (Session["Captcha"].ToString() != captchatxt.Text)
        {
            wrongcaptcha.Text = "Wrong Captcha";
            captchatxt.Text = "";
        }

    }

if wrong or right captcha user will register.

what I have to do, plz help, thanks


Viewing all articles
Browse latest Browse all 4737

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>