No, it's not in the web.config. I must say, if you don't know what an event is in .NET you should definately look into.
Anyhow. Here is the user code
I use for assigning a default role.
protected void CreateUserWizard_CreatedUser(object sender, EventArgs e)
{
CreateUserWizard cuw = sender as CreateUserWizard;
if (cuw != null)
{
Roles.AddUserToRoles(cuw.UserName, getDefaultRoles());
}
}
private string[] getDefaultRoles()
{
return ConfigurationManager.AppSettings[@"DefaultRoles"].Split(',');
}
Change getDefaultRoles to return a string[] containing your default roles.
So just declare your CreateUserWizard
<asp:CreateUserWizard id="ccw" runat="server" OnCreatedUser="CreateUserWizard_CreatedUser" />
Notice the OnCreateUser attribute.
Or you could use
<asp:CreateUserWizard id="ccw" runat="server" />
and in the code behind around the OnInit event
ccw.CreatedUser += new EventHandler(CreateUserWizard_CreatedUser);
Knowing how to use events is a must know for .NET development.