asp.net Can I force every page to inherit from a base page? Also should some of this logic be in my master page?
- by Bex
Hi!
I have a web app that has a base page.
Each page needs to inherit from this base page as it contains properties they all need as well as dealing with the login rights.
My base page has some properties, eg: IsRole1, IsRole2, currentUserID, Role1Allowed, Role2Allowed.
On the init of each page I set the properties "Role1Allowed" and…