On my CreateUserWizard I added a drop down to show all the role available for the app, its populating just fine, however, when I make a change only the first role is being populated in the database even though i have 4 roles in the dropdown. What would cause my dropdown not to pass the correct role to the Role.AddUserToRole() function?
protected void Page_Load(object sender, EventArgs e)
{
DropDownList dd1= (DropDownList)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("ddAvailableRoles");
dd1.DataSource = Roles.GetAllRoles();
dd1.DataBind();
}
and then I have my createuser call
protected void RegisterUser_CreatedUser(object sender, EventArgs e)
{
DropDownList dd1 = (DropDownList)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("ddAvailableRoles");
Roles.AddUserToRole(RegisterUser.UserName, dd1.SelectedItem.Value);
...
Go to the complete details ...