Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, for some reason i am forced to use createuser wizard which is in the asp.net 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.
thanks
Posted
Updated 23-Dec-12 14:55pm
v2
Comments
[no name] 24-Dec-12 0:46am    
Provide your code..
symonsarwar 24-Dec-12 2:36am    
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
oncreateduser="CreateUserWizard1_CreatedUser1">
<wizardsteps>
<asp:CreateUserWizardStep runat="server">
<contenttemplate>
<table>
<tr>
<td align="center" colspan="2">
Sign Up for Your New Account</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:
</td>
<td>
<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>
</tr>
<tr>
<td align="right">
ValidationGroup="CreateUserWizard1">*



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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900