B
Ben
Hi,
i have some problem to access from code-behind a label nested into a
CreateWizard control. I use a html-table for align purpose only.
I try to change the text property of the label with ID="UserNameLabel".
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep runat="server">
<ContentTemplate>
<table border="0">
<tr><td>Make a new account</td></tr>
<tr><td><asp:Label ID="UserNameLabel"
runat="server">Username:</asp:Label></td>
<td><asp:TextBox ID="UserName"
runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired"
runat="server">*</asp:RequiredFieldValidator>
</td></tr>
</table>
</ContentTemplate>
</asp:CreateUserWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
My attempt:
----------
Dim lb As New Label
lb = CreateUserWizard1.WizardSteps.Item(4)
(I also tried with Item(0) till 6).
Thanks for help
Ben
i have some problem to access from code-behind a label nested into a
CreateWizard control. I use a html-table for align purpose only.
I try to change the text property of the label with ID="UserNameLabel".
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep runat="server">
<ContentTemplate>
<table border="0">
<tr><td>Make a new account</td></tr>
<tr><td><asp:Label ID="UserNameLabel"
runat="server">Username:</asp:Label></td>
<td><asp:TextBox ID="UserName"
runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired"
runat="server">*</asp:RequiredFieldValidator>
</td></tr>
</table>
</ContentTemplate>
</asp:CreateUserWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
My attempt:
----------
Dim lb As New Label
lb = CreateUserWizard1.WizardSteps.Item(4)
(I also tried with Item(0) till 6).
Thanks for help
Ben