Glad you like the book.
I think it's pretty easy to do. Here are the first steps to get you going:
1. Add a CreateUserWizard to a page.
2. Right-click it and choose Customize Create User Step
3. In the markup that has been added, add runat="server" and visible="false" attributes to the table row that holds the box for the User Name, like this:
<tr runat="server" visible="false">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required."
If you just remove the entire row, you'll get an error because the UserName field is required.
Then in the CreatingUser event, sync the user name and e-mail address like this:
Protected Sub CreateUserWizard1_CreatingUser(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.LoginCancelEventArgs) _
CreateUserWizard1.UserName = CreateUserWizard1.Email
This way, when the user is inserted, the e-mail address is inserted as the user's name.
Similar to this, you'll need to customize other controls; you mainly need to alter the labels in front of controls, similar to what's been done to the PasswordRecovery control in chapter 9 - The Web Shop.
Hope this helps and if not, please let me know.
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results
and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Glass
by Joy Division
(Track 2 from the album: Heart And Soul (CD 1)
) What's This?