willopt_ric 0 Newbie Poster

Actually i want to add roles to my asp.net application.....how to do do that programatically???
i did in c# like...
Roles.CreateRoles("admin")
but its showing error:c:\inetpub\wwwroot\RoleMgtTest1\WebForm1.aspx.cs(75): The type or namespace name 'Roles' could not be found (are you missing a using directive or an assembly reference?)


Can ny one plz help me out regarding this????
Thanks in advance.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.