Reference Custom TextBoxes in CreateUserWizard
I've customized a CreateUserWizard, part of which is shown below.
On the "CreatedUser" event, I'm going to write some of these fields to another file (other than the ASPNETDB files)
However, I can't seem to reference the textboxes.
me.createuserwizard1 doesn't show them in intellisense...
me.UserFirstName doesn't hit that one...
adding UserFirstName to profile/names in web.config doesn't help...
On page 594 of Wrox's "Professional ASP.NET 2.0" it seems to show fields such as these being accessed with simple calls...
Any suggestion? I hope I don't have to use FindControls, etc...it seems there should be some support for this...but whatever it takes :-)
Thanks!
=============================================
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" Height="188px">
<WizardSteps>
<asp:TemplatedWizardStep ID="AddNameInfo" runat="server" Title="Add Name Information">
<ContentTemplate>
<table border="0">
<tr>
<td align="center" colspan="2" style="height: 24px; text-align: center">
<strong>Add Name Information</strong></td>
</tr>
<tr>
<td align="right" class="CreateUserTitleCell" style="width: 135px; height: 20px">
<asp:Label ID="UserFirstNameLabel" runat="server" AssociatedControlID="UserFirstName">User First Name:</asp:Label></td>
<td class="CreateUserDataCell" style="width: 257px; height: 20px;">
<asp:TextBox ID="UserFirstName" runat="server" Width="220px"></asp:TextBox>
<span style="color: red">*</span>
</td>
</tr>
<tr>
<td align="right" class="CreateUserTitleCell" style="width: 135px">
<asp:Label ID="UserMiddleInitialLabel" runat="server" Text="User Middle Initial"></asp:Label></td>
<td class="CreateUserDataCell" style="width: 257px">
<asp:TextBox ID="UserMiddleInitialTextBox" runat="server" Width="32px"></asp:TextBox><span
style="color: red"></span></td>
</tr>
<tr>
<td align="right" class="CreateUserTitleCell" style="width: 135px">
<asp:Label ID="UserLastNameLabel" runat="server" AssociatedControlID="UserLastName">User Last Name:</asp:Label></td>
<td class="CreateUserDataCell" style="width: 257px">
<asp:TextBox ID="UserLastName" runat="server" Width="220px"></asp:TextBox>
<span style="color: red">*</span>
</td>
etc
|