[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2936
  • Last Modified:

Error using CreateUserWIzard:

I  am using ASP.NET and VIual Studio wih forms authentification.

I have customized the Create user wizard to look and feel as I need it.  The problem is that I get this error message when I run the page:

CreateUserWizard1: CreateUserWizardStep.ContentTemplate does not contain an IEditableTextControl with ID UserName for the username.

The issue is that I got rid of the username field.  I want to make this their email address.  I also changed the security question field to a drop down list of predefined values.

I am pretty sure I can use he Membership object to add the user.  However, how do I override the original code of the user wizard to prevent this message.


0
hoyaabanks
Asked:
hoyaabanks
1 Solution
 
traxionCommented:
You will need to write a custom membership provider to accomplish this task.  You can implement and inherit from the existing default membership provider, however, you must know that the functions contained within are marked "MustOverride" so you will have to overload them in order to implement some of your custom functionality.  The actual code is too much for the scope of this article but here are some good tutorials for creating your own custom provider:

http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
http://www.manuelabadia.com/blog/PermaLink,guid,3b6ccb3f-2f2a-4dcb-a414-605371a00618.aspx
http://www.devx.com/asp/Article/29256
http://www.15seconds.com/issue/050216.htm
http://www.patrickhynds.com/PermaLink.aspx?guid=206663fa-546e-4882-89ee-6d83099cbd7a
http://www.aspnetworld.com/articles/2007052001.aspx

Cheers,

Dustin
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now