Click here to Skip to main content
11,573,862 members (49,254 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
hi, for some reason i am forced to use createuser wizard which is in the membership provider.I removed all the textboxes from the wizard and brought some from the toolbox,but the problem is , in the codebehind i cannt find the controls.
error like...
textbox1.text doesn't exist in the current context.Please someone help me here.because i need to store the values in my own created database.
Posted 23-Dec-12 14:53pm
Edited 23-Dec-12 14:55pm
Krunal Rohit at 24-Dec-12 0:46am
Provide your code..
symonsarwar at 24-Dec-12 2:36am
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"

<asp:CreateUserWizardStep runat="server">

<td align="center" colspan="2">
Sign Up for Your New Account</td>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:
<asp:TextBox ID="TextBox1" runat="server">
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*
<td align="right">

in the codebehind
...........Cmd.Parameters.AddWithValue("@username",textbox1.text)//error textbox.text does not exist in the current context

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS

Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100