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. mebership

mebership

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-serversysadmin
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.
  • H Offline
    H Offline
    hahii
    wrote on last edited by
    #1

    Actually I have one login page where when I validate the user it let me show Default page. In that page I have some pages listed.I want to give access of different pages to different users based on their roles. I am not using membership and roles provider by going into ASP.Net configuration tab and creating roles and users over there. I have two tables users and roles already in my sql server database. Once after validating the users and getting Default page how can I make sure that e'g if the user is admin he has access to just administration page wwwand sales person has access to only sales.aspx page etc

    C 1 Reply Last reply
    0
    • H hahii

      Actually I have one login page where when I validate the user it let me show Default page. In that page I have some pages listed.I want to give access of different pages to different users based on their roles. I am not using membership and roles provider by going into ASP.Net configuration tab and creating roles and users over there. I have two tables users and roles already in my sql server database. Once after validating the users and getting Default page how can I make sure that e'g if the user is admin he has access to just administration page wwwand sales person has access to only sales.aspx page etc

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

      The obvious thing to do, is to write a base page, which all pages derive from, which checks the logged in member and if they do not have access, redirects. Then set what permissions are needed in the derived page, or create derived pages to then derive from, for each status you want to apply.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      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