View Single Post
  #5 (permalink)  
Old March 8th, 2006, 04:25 PM
Shell84 Shell84 is offline
Authorized User
Join Date: Feb 2006
Location: , , .
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts

This is the wizard on Login.aspx and an example of the mobile number textbox without validation.

<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" LoginCreatedUser = "true" OnCreatedUser="CreateUserWizard1_CreatedUser">
 <asp:CreateUserWizardStep runat="server">
    <td align="right" style="height: 26px">
    <asp:Label ID="MobileNumberLabel" runat="server" AssociatedControlID="MobileNumber">Mobile Number:</asp:Label>
   <td style="height: 26px">
   <asp:TextBox ID="MobileNumber" runat="server"></asp:TextBox>
<asp:CompleteWizardStep runat="server">

This is the login.aspx.vb page:

Partial Class Default2
    Inherits System.Web.UI.Page

    Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs) Handles CreateUserWizard1.CreatedUser

        Dim myProfile As ProfileCommon = CType(ProfileCommon.Create(CreateUserWizard1.UserN ame, True), ProfileCommon)

 myProfile.MobileNumber = MobileNumber(CType(CreateUserWizard1.CreateUserSte p.ContentTemplateContainer.FindControl("MobileNumb er"), TextBox).Text)


End Sub
End Class

And this is the profile information from the web.config

                <profile enabled ="true">
        <add name="MobileNumber" type ="integer" />
        <add name="Gender" type ="string" />
        <add name="Age" type ="integer" />

I keep reading about custom providers, do i need to create my own or do this a whole different way? All i want to do is allow the user to register giving three extra pieces of information which will be stored and then the mobile number used for sending information to the user at a later date.