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 6982335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:16:29+00:00 2026-05-27T18:16:29+00:00

simple but hard to solve question on Web Forms. I enforced a role-based access

  • 0

simple but hard to solve question on Web Forms.

I enforced a role-based access on my web form application, but I would like to tailor the access based on WebForm or URL, something like

/Administration/* –> only admins
/Users/* –> admins and users
/* –> anonymous also

Any hint on how to do it on web.config?

Thank you and best regards

  • 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-27T18:16:30+00:00Added an answer on May 27, 2026 at 6:16 pm
    <location path=”Admin”>
                    <authorization>
                                    <allow roles=”Admin” /> 
                                    <deny users=”*” />
                    <deny roles=”*” /> 
                    </authorization>
    </location>
    

    or take a look here: http://support.microsoft.com/kb/316871 or http://weblogs.asp.net/gurusarkar/archive/2008/09/29/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config.aspx

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

Sidebar

Related Questions

My problem is a little bit hard but simple. I have (or there is)
The request is a simple one, but is hard to google for. Here are
It's all in the title; super-simple I reckon, but it's so hard to search
I have a simple but subtle question. Below you see two different declaration variants
This should be simple, very simple, but I'm having a hard time with it.
I like to study languages outside my comfort zone, but I've had a hard
this seems like an obvious question to me, but I couldn't find it anywhere
I'm trying to solve the below problem. I feel like it is possible, but
I would like to write simple scripts in C#. Stuff I would normally use
I tried so hard but I just cannot get a simple Richfaces AjaxStatusTag inserted

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.