2012-08-06

How to access a controller inside an asp:CreateUserWizard

In C#

Label lbl = (Label)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("DisplayWelcomeMessageLabel"));

Here the RegisterUser is the ID of the asp:CreateUserWizard control.

<asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false" OnCreatedUser="RegisterUser_CreatedUser">

……….

</asp:CreateUserWizard>

No comments: