|
Subject:
|
Reference Custom TextBoxes in CreateUserWizard
|
|
Posted By:
|
wirerider
|
Post Date:
|
9/14/2006 8:46:58 PM
|
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
|
|
Reply By:
|
wirerider
|
Reply Date:
|
9/15/2006 10:00:08 PM
|
The 4 Guys didn't seem to think working with the createuserwizard was as simple as described in "Profession ASP.NET 2.0", as per here:
http://aspnet.4guysfromrolla.com/articles/062806-1.aspx
I've done a full customization, some links here
http://forums.asp.net/thread/1388290.aspx
took a couple hours (plus two days of research and hair pulling to figure out the wizard approach was too hard)
Done with this one, thanks!
|