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. Access right to admin/user(.Net 1.1+ c#)

Access right to admin/user(.Net 1.1+ c#)

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestiondatabase
5 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.
  • T Offline
    T Offline
    Thats Aragon
    wrote on last edited by
    #1

    Hi All, I m working on .NET 1.1 with C#. In my application there are 13 type of users(roles) including Admin.Now I want such functionality that will give Read/write permission to the specific user to specific aspx page....Actually I have mainly 2 section in my application (1) Forms Module(there are 4 modules) (2) Reports(there are 4 different types of reports as per above 4 modules) Now the Read/Write permission is static for per page and it is stored into DataBase. Currently I m retrieving role and userName from database(at a Login time)... My problem is that, how can i check that particular user has Read/write permission for a particular page?:~ I have to make checking for per page(on page load) that login user has specific permission????.:confused:.... I have lots of pages...please help me... Thank you for reading my big msg......

    Keep Smiling :)

    V 1 Reply Last reply
    0
    • T Thats Aragon

      Hi All, I m working on .NET 1.1 with C#. In my application there are 13 type of users(roles) including Admin.Now I want such functionality that will give Read/write permission to the specific user to specific aspx page....Actually I have mainly 2 section in my application (1) Forms Module(there are 4 modules) (2) Reports(there are 4 different types of reports as per above 4 modules) Now the Read/Write permission is static for per page and it is stored into DataBase. Currently I m retrieving role and userName from database(at a Login time)... My problem is that, how can i check that particular user has Read/write permission for a particular page?:~ I have to make checking for per page(on page load) that login user has specific permission????.:confused:.... I have lots of pages...please help me... Thank you for reading my big msg......

      Keep Smiling :)

      V Offline
      V Offline
      VenkataRamana Gali
      wrote on last edited by
      #2

      do one thing... are u maintaining user rights in database? if yes create one session(assume it as Session["permissions"]) for user permissions. At the time of login retreive the user rights from database & store in the Session["permissions"]. Now, for each page load check with the permissions & accordingly set the control Read/write or Enable or Disable properties. hope this will give u a solution. :)

      Ramana

      T 1 Reply Last reply
      0
      • V VenkataRamana Gali

        do one thing... are u maintaining user rights in database? if yes create one session(assume it as Session["permissions"]) for user permissions. At the time of login retreive the user rights from database & store in the Session["permissions"]. Now, for each page load check with the permissions & accordingly set the control Read/write or Enable or Disable properties. hope this will give u a solution. :)

        Ramana

        T Offline
        T Offline
        Thats Aragon
        wrote on last edited by
        #3

        Hi Ramana! thank you for reply.

        Ramana. G.V wrote:

        create one session(assume it as Session["permissions"]) for user permissions. At the time of login retreive the user rights from database & store in the Session["permissions"].

        I have totaly 25 different section with reports. so user can navigate to any section.In different section user have different permission of Read/Write. So How can I store so much session??? It will increase load........so plz adviced me another solution for this....... Thank you again for your kind help.......

        Keep Smiling :)

        V 1 Reply Last reply
        0
        • T Thats Aragon

          Hi Ramana! thank you for reply.

          Ramana. G.V wrote:

          create one session(assume it as Session["permissions"]) for user permissions. At the time of login retreive the user rights from database & store in the Session["permissions"].

          I have totaly 25 different section with reports. so user can navigate to any section.In different section user have different permission of Read/Write. So How can I store so much session??? It will increase load........so plz adviced me another solution for this....... Thank you again for your kind help.......

          Keep Smiling :)

          V Offline
          V Offline
          VenkataRamana Gali
          wrote on last edited by
          #4

          again do one thing... retrieve all the Read/write permissions from the DB & maintain different key-value in NameValueCollection object, store this NameValueColleciton object in the session... got it....? then proceed. :)

          Ramana

          T 1 Reply Last reply
          0
          • V VenkataRamana Gali

            again do one thing... retrieve all the Read/write permissions from the DB & maintain different key-value in NameValueCollection object, store this NameValueColleciton object in the session... got it....? then proceed. :)

            Ramana

            T Offline
            T Offline
            Thats Aragon
            wrote on last edited by
            #5

            Thank You for reply :)

            Keep Smiling :)

            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