Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8160
WebCaptcha integration with CreateUserWizard
posted

How to integrate WebCaptcha with standard Microsoft CreateUserWizard?

Parents
No Data
Reply
  • 8160
    posted

    The attached samples demonstrates how to intgrate standard CreateUserWizard with Infragistics WebCaptcha control.

    1. Add WebCaptcha in CustomNavigationTemplate
    2. Handle CreatingUser event and check if the captcha is valid


        protected void CreateUserWizard1_CreatingUser(object sender, LoginCancelEventArgs e)
        {
            WebCaptcha captcha = (WebCaptcha)CreateUserWizard1.CreateUserStep.CustomNavigationTemplateContainer.FindControl("WebCaptcha1");

            if (captcha.IsValid == false)
            {
                e.Cancel = true;
            }
        }

    Samples uses aspnet_regsql.exe to setup membership roles and profiles database.

Children
No Data