Share the post "ASP.NET: Get Access Of Control Within A CreateUserWizard"
Getting access to a control from within c# is straightforward. You just call the ID name and call the method or property that you want to use. If you are going to get access to a control from within a CreateUserWizard control and your code may look something like
|
1 2 3 4 5 6 7 8 9 10 |
<asp:CreateUserWizard ID="RegisterUserWizard" runat="server" BorderStyle="ridge" BackColor="aquamarine"> <TitleTextStyle Font-Bold="True" Font-Names="Verdana" /> <WizardSteps> <asp:CreateUserWizardStep ID="CreateUserStep" runat="server"> <ContentTemplate> <asp:Label ID="label" runat="server"></asp:Label> </ContentTemplate> </asp:CompleteWizardStep> </WizardSteps> </asp:CreateUserWizard> |
you call the Label control by
|
1 |
Label lbl = (Label) RegisterUserWizard.CreateUserStep.ContentTemplate.label; |