I have gone through a video tutorial regarding Asp.net Membership Provider in which he has done his coding in VB. The same code i used in C# but at this point i am getting an error as The best overloaded method match for 'System.Web.Security.Roles.AddUsersToRole(string[], string)' has some invalid arguments
This is what i have written with reference to that video can any one tell what’s going wrong
Roles.AddUsersToRole(User.Identity.Name, ListBox1.SelectedValue);
You shoud use :
Roles.AddUserToRole
instead of :
Roles.AddUsersToRole