I am still a student and I am learning C #. I have to make a small application in ASP.NET. The application must use roles.
So, I βlinkedβ MemberShip to my database (using the asp_regsql tool). Now I have all the asp tables, so everything is fine. I created 2 roles (Admin and Client) using ASP configuration tools.
My question is:
Is it possible to create a page (for example, Register.aspx) and pass the hide parameter on this page to set the user role during registration?
For example, I will have a RegisterClient.aspx page, and when the user creates an account on this page, the account will automatically be associated with the client role.
Is this possible or should I do it myself using the ASP configurator?
Thank you for your help!
source share