I have a create_account.aspx page with a CreateUserWizard control on it. It has the LoginCreatedUser property set to true.
Once the account has been created and some further wiring up has occurred in CreateUserWizard_CreatedUser I do the following:
Response.Redirect("~/dashboard/default.aspx")
The individual is then redirected to the login.aspx page as if they are not authenticated? Why?
I have a suspicion that it may be related to the fact that default.aspx is in a sub-directory in which I have a web.config file stating,
<configuration>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Any thoughts?
You might want to try setting the CreateUserWizard ContinueDestinationPageUrl property to the required URL ie.
ContinueDestinationPageUrl="~/dashboard/default.aspx".Can be done programatically also.