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. Roles and Membership

Roles and Membership

Scheduled Pinned Locked Moved ASP.NET
helpquestion
8 Posts 4 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.
  • V Offline
    V Offline
    vishwjeet
    wrote on last edited by
    #1

    Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks

    C A V R 4 Replies Last reply
    0
    • V vishwjeet

      Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      vishwjeet wrote:

      Question is, can we configure our application this way.

      Of course we can. What could possibly stop you ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      V 1 Reply Last reply
      0
      • C Christian Graus

        vishwjeet wrote:

        Question is, can we configure our application this way.

        Of course we can. What could possibly stop you ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        V Offline
        V Offline
        vishwjeet
        wrote on last edited by
        #3

        How to do it? While configuring the application using the Configuration Tool, we can allow/deny access only to the folders within the project directory.

        C 1 Reply Last reply
        0
        • V vishwjeet

          How to do it? While configuring the application using the Configuration Tool, we can allow/deny access only to the folders within the project directory.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Oh, I see. I have no idea, I never use the built in rubbish, I write my own code to do things like that.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          • V vishwjeet

            Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            why dont you make your own security handler and every aspx requests are processed by it. Check for the session id there, and do accordingly. .. :cool:

            Abhishek Sur My Latest Articles Working with Excel using MDAC
            Basics on LINQ and Lambda Expressions
            Create .NET Templates

            1 Reply Last reply
            0
            • V vishwjeet

              Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks

              V Offline
              V Offline
              vishwjeet
              wrote on last edited by
              #6

              Thanks for your suggestions!! But I was looking a way to do it using either the .NET Application Configuration Utility or through the config files. :confused: Please let me know if it is possible. Thanks!

              1 Reply Last reply
              0
              • V vishwjeet

                Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks

                R Offline
                R Offline
                r a m e s h
                wrote on last edited by
                #7

                If you want to specify page or full folder that don't need to be authenticated, use <location> tag in web.config. For example <location path="yourFoldername">    <system.web>       <authorization>          <allow users="*" />       </authorization>    </system.web> </location> The <b>path </b>attribute can be used to identify a specific file or child directory to which unique configuration settings apply.

                V 1 Reply Last reply
                0
                • R r a m e s h

                  If you want to specify page or full folder that don't need to be authenticated, use <location> tag in web.config. For example <location path="yourFoldername">    <system.web>       <authorization>          <allow users="*" />       </authorization>    </system.web> </location> The <b>path </b>attribute can be used to identify a specific file or child directory to which unique configuration settings apply.

                  V Offline
                  V Offline
                  vishwjeet
                  wrote on last edited by
                  #8

                  Thanks buddy!! I will try this one. I hope this is what I was looking for

                  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