I am adding a CreateUserWizard control in one of the web page.
I have customized the createuserwizard control to add billing address information. I have added few text boxes and in the "CreatedUser" event I am using following code to get the information
TextBox txtBAddress1 = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("txtBillingAddress1");
Now the problem is I have added a user control for state name and country. I am not sure how to get reference for the user control.
I want to do something like this
LocationUserControl loc_u_c = (LocationUserControl) CreateUserWizardStep1.ContentTemplateContainer.FindControl("LocationUserControl1");
Above statement doesn't work. I am not sure how to cast to user control?
Please help.
Thanks
Jijo