protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { localhost.Service serviceObj = new localhost.Service(); TextBox txt = (TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("LastName"); int orgID = serviceObj.AccountRegistration(CreateUserWizard1.UserName, txt.Text, CreateUserWizard1.Email, CreateUserWizard1.Password); if (orgID > 0) { Session["OrgID"] = orgID; Session["username"] = CreateUserWizard1.Email; Response.Redirect("Home.aspx"); } }