Re: New user default Role



you can handle the CreatedUser event of the CreateUserWizard control to add the user to a role

protected void _createUser_CreatedUser(
object sender, EventArgs e)
{
// add the user to a standard role after registration
Roles.AddUserToRole(_createUser.UserName, "User");
}


---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

hi,

Is there a way when a New User is created through the ASP.NET 2.0 new
user control that he is placed into a default Role? I'm using VB and I
would think I probably have to create a stored procedure to the aspnet
db. I'm not sure if there is just a way to set the default.



.