Access right to admin/user(.Net 1.1+ c#)
-
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 :)
-
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 :)
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
-
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
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 :)
-
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 :)
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
-
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
Thank You for reply :)
Keep Smiling :)