How to integrate WebCaptcha with standard Microsoft CreateUserWizard?
The attached samples demonstrates how to intgrate standard CreateUserWizard with Infragistics WebCaptcha control.
1. Add WebCaptcha in CustomNavigationTemplate2. 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.