Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:25:18+00:00 2026-05-13T18:25:18+00:00

Currently, we have a site where almost all the pages fall into some page

  • 0

Currently, we have a site where almost all the pages fall into some page class that’s a subclass System.Web.UI.Page. Generally the subclasses control styling — headers, footers, etc. — things displayed on that class of page that we want for all classes.

For one particular class, we check some session variables to see if the user has access to that particular page. If not, they get redirected off and told they don’t have access.

I’ve since implemented a custom role provider and am in the process of updating all my web.config files from to .

The question has arisen: Why not implement the page-based restrictions in the page class instead of implementing a role-provider methodology.

Honestly, when I first considered this topic, it seemed to me there was a clash between and having page classes do the authorization. However, I’m having a difficult time coming up with reasons why page-class based authorization would be a bad idea right now.

If you’re able to understand what I’m talking about where we set access (authorization) info during the login process and then use this (session based) information to “authorize” a user to access a page based on the page-class vs using the built-in ASP .NET role provider methodology, I’d appreciate your thoughts on this matter. Especially if you have experience in this area.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:25:18+00:00Added an answer on May 13, 2026 at 6:25 pm

    Well both ways are possible, IMHO, it comes down to whether you want to use the ASP.NET authorization scheme (allows, denies in the web.config) or code it into the page.

    Personally I prefer the configuration approach, as it is more flexible and allows for the pages to inherit from another page class, or use master pages to provide for a common look and feel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

R's help system is great, and I love that almost all help pages for
I have a web service that will be consumed by some application (web site
Currently I have a site that is set up using a masterpage and a
Currently I have a site where it has a header that looks something like
I currently have a download site for my school that is based in .net.
I currently have a web site where users can select a custom theme. After
I have a site that I am currently working on in ASP.NET 2.0 using
I currently have a site that both needs JSAPI and infieldlabels javascript. I have
I'm currently doing the redesign for this site: http://www.palosverdes.com/rpv2012/ and have run into a
I have the following code in my Site.Master page of an almost empty ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.