Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. authenticate particular page in a directory to particular user or role

authenticate particular page in a directory to particular user or role

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecuritytutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asif Rehman
    wrote on last edited by
    #1

    Hi, I'm using ASP.NET administrative tool to configure security. I want to authenticate page-by-page not directory by directory On the left side in (MANAGE ACCESS RULES), it only shows directories, not pages. How to select particular page and then authenticate in WAT. If not, then what is the alternative. Regards Asif Rehman

    O 1 Reply Last reply
    0
    • A Asif Rehman

      Hi, I'm using ASP.NET administrative tool to configure security. I want to authenticate page-by-page not directory by directory On the left side in (MANAGE ACCESS RULES), it only shows directories, not pages. How to select particular page and then authenticate in WAT. If not, then what is the alternative. Regards Asif Rehman

      O Offline
      O Offline
      Orcun Iyigun
      wrote on last edited by
      #2

      The one that I know of you can do it from web.config file. So in your web.config you need to use the location tag to exclude the pages that you do not want to authenticate.. Look at this example: <configuration> <location path="YourPath/yourfile.aspx"> <system.web> <authorization> <deny users="?" /> - OR - <allow users="?" /> </authorization> </system.web> </location> </configuration>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups