Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 14th, 2006, 08:46 PM
Authorized User
Points: 514, Level: 8
Points: 514, Level: 8 Points: 514, Level: 8 Points: 514, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old September 15th, 2006, 10:00 PM
Authorized User
Points: 514, Level: 8
Points: 514, Level: 8 Points: 514, Level: 8 Points: 514, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:28 PM.


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