Hello, I want to do user-based page authorization with asp.net web forms. What I want to do is to take the role of the user while logging in from the users table in the database and control which pages he can access there, for example, let the admin role access all pages, but the user role can only access profile.aspx, add. aspx, and when the unauthorized user wants to access other pages, it is directed to the authorized.aspx page. I would like you to show me all the adjustments I need to make in this regard, thank you.
I tried a lot with global.asax and web.config, but I was not successful.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)