Author: dantheriver | Posted on: 3/10/2010 1:07:29 PM | Views : 576

I am having problems getting my asp:CreateUserWizard FinishDestinationPageUrl to work. I have an OnCreatedUser method that is firing just fine, but after that, it just stays on the same page.
Here is the markup:
<asp:CreateUserWizard ID="wizard" runat="server" OnCreatedUser="wizard_CreatedUser" LoginCreatedUser="true" FinishDestinationPageUrl="~/MyDefault.aspx" >

Here is the wizard_CreatedUser code:
protected void wizard_CreatedUser(object sender, EventArgs e)
{
var userName = (TextBox)step1.ContentTemplateContainer.FindControl("UserName");
var ddState = (DropDownList)step1.ContentTemplateContainer.FindControl("ddState");
var User = Membership.GetUser(userName.Text);

var profile = (ProfileBase)ProfileBase.Create(User.Use ...

Go to the complete details ...