View Single Post
 
Old May 8th, 2007, 05:09 PM
Gadall Gadall is offline
Registered User
 
Join Date: May 2007
Location: Brentwood, TN, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CreateUser Error

Also I'm having a rather odd error in the code-behind of the createuser page:

Partial Class CreateUser
    Inherits System.Web.UI.Page

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

        Dim pc As ProfileCommon = New ProfileCommon()
        pc.Initialize(CreateUserWizard1.UserName.ToString( ), True)

        pc.FirstName = FirstName.Text
        pc.LastName = LastName.Text
        pc.TechNumber = TechNumber.Text
        pc.Phone = Phone.Text

        pc.Save()
    End Sub
End Class

I get:
Name 'FirstName' is not declared.
Name 'LastName' is not declared.
Name 'TechNumber' is not declared.
Name 'Phone' is not declared.

...
<tr>
                            <td align="right" style="height: 26px">
                                <asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="FirstName">First Name:</asp:Label></td>
                            <td style="height: 26px">
                                <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="FirstNameRequired" runat="server" ControlToValidate="FirstName"
                                    ErrorMessage="First name is required." ToolTip="First name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
...