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. Role based security

Role based security

Scheduled Pinned Locked Moved ASP.NET
databasesql-servervisual-studiosysadminsecurity
3 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.
  • V Offline
    V Offline
    vanikanc
    wrote on last edited by
    #1

    Hello, I am in the process of building a web application for our company. The entire application will be driven by the different buisness users we have set up. Like Finance, HR, Marketing. So, folks belonging to that unit should be able to access their areas. In the past I did this using SQL server, set up tables having roles and then assigned users to that role. It was pretty laborious. This was in VS2005. Is there something already re-built into VS 2010? Any other approaches? Much appreciated! Thanks!

    R 1 Reply Last reply
    0
    • V vanikanc

      Hello, I am in the process of building a web application for our company. The entire application will be driven by the different buisness users we have set up. Like Finance, HR, Marketing. So, folks belonging to that unit should be able to access their areas. In the past I did this using SQL server, set up tables having roles and then assigned users to that role. It was pretty laborious. This was in VS2005. Is there something already re-built into VS 2010? Any other approaches? Much appreciated! Thanks!

      R Offline
      R Offline
      Rahul Rajat Singh
      wrote on last edited by
      #2

      I think the ASP.NET membership API is the way to go. It is still the same as you did in vs2005. But you have an option of using the default membership APIs(in which case you only need to configure roles using WSAT and the frontend/backend stuff will be done for you automatically). or you can have your own tables and implement custom form based authentication. Here is the link for fist approach: Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^] Here is for the second approach: Understanding and Implementing ASP.NET Custom Forms Authentication[^]

      Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.

      V 1 Reply Last reply
      0
      • R Rahul Rajat Singh

        I think the ASP.NET membership API is the way to go. It is still the same as you did in vs2005. But you have an option of using the default membership APIs(in which case you only need to configure roles using WSAT and the frontend/backend stuff will be done for you automatically). or you can have your own tables and implement custom form based authentication. Here is the link for fist approach: Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^] Here is for the second approach: Understanding and Implementing ASP.NET Custom Forms Authentication[^]

        Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.

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

        Hi, I was able to add roles and users to this roles. With in Visual Studio, I went to website, ASP.Net configuration and was able to add the users. I was able to do this locally on my laptop. I have set up a web site on a web server, having IIS 7. How can I access this same screen on the web server? Thanks!

        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