I'm currently working on a website that's using the standard ASP.Net login system. I'm stumped as to how to have a newly created user automatically added to a specific role, i.e. member, admin, etc. The site is in C# instead of VB.

Any help is greatly appreciated!

- Michael

Hey mate have u Created a table in ur database for Users.
If yes than then just add a column to the table as "intRoleId" let this roleid have a a value as 1 if iuts an admin and 0 if its a member...


While workin on ur Pages just use this value to decide watb to show particular users.

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.