Hello,
Before I start thanks to everyone who has already helped in my previous posts. I am a student and quite new to programming and really appreciate other members taking time to help. You're all a great bunch! Thanks
Now to my question. I would like to check for username availability. For this I need to extract the text entered in the UserName textbox from the CreateUserWizard. I don't know how to do so. I need to cast somewhere but where?
Here's my code: (the bold word draws a cast error which I need to sort out)
protected void CoachRegistrationWizard_CreatedUser(object sender, EventArgs e)
{
CreateUserWizard wiz = (CreateUserWizard)FindControl("CoachRegistrationWizard");
TextBox uname = (WebControl)wiz.FindControl("UserName");
Membership.CreateUser(uname.Text, "Test");
Roles.AddUserToRole(Coach ...
Go to the complete details ...