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. Authentication ?

Authentication ?

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-servercom
6 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.
  • M Offline
    M Offline
    Muhammad Waqas Butt
    wrote on last edited by
    #1

    Hi, I'm developing a testing web and want to run it on my local intranet. I've used asp.net 1.1 and sql server database 2000, now problem is that i have a directory named as "Admin" in which i've all the admin pages. I want that no other user can access this directory pages except Admin. Can anybody tell how and should i do in asp.net and sql server?

    |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

    J 1 Reply Last reply
    0
    • M Muhammad Waqas Butt

      Hi, I'm developing a testing web and want to run it on my local intranet. I've used asp.net 1.1 and sql server database 2000, now problem is that i have a directory named as "Admin" in which i've all the admin pages. I want that no other user can access this directory pages except Admin. Can anybody tell how and should i do in asp.net and sql server?

      |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      set the location tag in the web.config for the corresponding folder... something like this....

      location path="Admin"
              system.web
                  authorization
                      allow roles="Administrators" 
                      deny users="*"
                  authorization
              system.web
      location
      

      Regards
      J O H N :rose:
      "Even eagles need a push." David McNally



      M 1 Reply Last reply
      0
      • J John ph

        set the location tag in the web.config for the corresponding folder... something like this....

        location path="Admin"
                system.web
                    authorization
                        allow roles="Administrators" 
                        deny users="*"
                    authorization
                system.web
        location
        

        Regards
        J O H N :rose:
        "Even eagles need a push." David McNally



        M Offline
        M Offline
        Muhammad Waqas Butt
        wrote on last edited by
        #3

        Hi J O N, Thanks for your help i did the same think but when i login through admin user name it give ReturnUrl=Admin Directory path in addressbar, other users account working properly. now can you tell me what code should be there and database table structure. Please help me

        |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

        J 1 Reply Last reply
        0
        • M Muhammad Waqas Butt

          Hi J O N, Thanks for your help i did the same think but when i login through admin user name it give ReturnUrl=Admin Directory path in addressbar, other users account working properly. now can you tell me what code should be there and database table structure. Please help me

          |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

          J Offline
          J Offline
          John ph
          wrote on last edited by
          #4

          | Muhammad Waqas Butt | wrote:

          now can you tell me what code should be there and database table structure

          to secure the pages within a folder in an intranet application that is the way you should have the web.config file settings. so that It will allow only the user's those who are under that particular role. what is the need for Code and database table structure? Could you please be more specific?

          Regards
          J O H N :rose:
          "Even eagles need a push." David McNally



          M 1 Reply Last reply
          0
          • J John ph

            | Muhammad Waqas Butt | wrote:

            now can you tell me what code should be there and database table structure

            to secure the pages within a folder in an intranet application that is the way you should have the web.config file settings. so that It will allow only the user's those who are under that particular role. what is the need for Code and database table structure? Could you please be more specific?

            Regards
            J O H N :rose:
            "Even eagles need a push." David McNally



            M Offline
            M Offline
            Muhammad Waqas Butt
            wrote on last edited by
            #5

            what is the need for Code and database table structure? Could you please be more specific? Thanks for your help. I wanted to know where and how i should define roles in db or code or both?

            |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

            J 1 Reply Last reply
            0
            • M Muhammad Waqas Butt

              what is the need for Code and database table structure? Could you please be more specific? Thanks for your help. I wanted to know where and how i should define roles in db or code or both?

              |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

              J Offline
              J Offline
              John ph
              wrote on last edited by
              #6

              hope this helps.. http://support.microsoft.com/kb/315736[^]

              Regards
              J O H N :rose:
              "Even eagles need a push." David McNally



              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