Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2006, 08:46 PM
Authorized User
 
Join Date: Jan 2006
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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>&nbsp;

</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>&nbsp;

</td>


etc
 
Old September 15th, 2006, 10:00 PM
Authorized User
 
Join Date: Jan 2006
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating custom properties using CreateUserWizard Shell84 ASP.NET 2.0 Professional 17 June 15th, 2007 04:42 PM
CreateUserWizard problem with custom step danblack101 ASP.NET 2.0 Professional 0 July 12th, 2006 01:09 AM
Reference Page Control from Custom Class wirerider ASP.NET 2.0 Professional 6 February 1st, 2006 07:45 PM
textboxes on custom activex print black ParadiseIsle Beginning VB 6 0 November 18th, 2005 03:43 PM
Custom Controls in Reference bmains VS.NET 2002/2003 0 February 11th, 2004 10:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.