|
|
 |
| ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

February 28th, 2009, 01:42 PM
|
|
Friend of Wrox
|
|
Join Date: Mar 2008
Location: So Cal is good enough for you, California, USA.
Posts: 133
Thanks: 15
Thanked 1 Time in 1 Post
|
|
Object reference not set to an instance of object
ok. so my function:
Code:
CreateUserProfile(
((TextBox)CreateUserWizard1.FindControl("UserName")).Text.ToString(),
((TextBox)CreateUserWizard1.FindControl("txtFirstName")).Text.ToString(),
((TextBox)CreateUserWizard1.FindControl("txtLastName")).Text.ToString(),
((TextBox)CreateUserWizard1.FindControl("Password")).Text.ToString(),
((TextBox)CreateUserWizard1.FindControl("Email")).Text.ToString(),
((DropDownList)CreateUserWizard1.FindControl("ddlQuestion")).SelectedValue,
((TextBox)CreateUserWizard1.FindControl("txtAnswer")).Text.ToString());
is where the error is. im trying to get input from text boxes in the create user wizard control. i had a post like this a while back and used that as an example... idk what i did differently besides not using the ToString() at the end. im gona try it again without that but i dont think thats the error... any ideas?
|

March 1st, 2009, 05:13 AM
|
 |
Wrox Author
Points: 33,554, Level: 80 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,228
Thanks: 7
Thanked 203 Times in 201 Posts
|
|
Did you set a break point on this method and then looked at the individual controls? Do any of them return a valid value?
Imar
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |