Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,
i have created a role page in which i can create roles and whatever roles i have created is stored in database and a gridview. In that gridview an edit button column is there. When i am clicking the edit button another page known as permission page of the respective role. The permission page contains a grid view with ID, Pages, Add, view , delete columns and a button save. When i check the checkboes and click the save button in database Y is stored for checked checkboxes otherwise N. Now my problem is how my different aspx pages can be viewed, edited, according to my checkboxes status and how will i provide these permissions to my ad users.
Please help me to resolve this issue and give some example similar to my design if possible.
Posted

I am not sure that i understand your answer correctly but i think you can check the permission stored value on your page when they load and accordingly display the content.
 
Share this answer
 
v2
Comments
Member 10578683 17-Apr-14 2:12am    
that is i am asking how will i check
Sanket Saxena 17-Apr-14 2:21am    
As per your question you have already saved the permission in the database. Then just create a function say "checkPermission" and in that fetch the information from the database and display the show/hide the content....This is a very basic level solution just try it
Member 10578683 17-Apr-14 2:27am    
can u give some example of it
Member 10578683 17-Apr-14 2:36am    
I am doing all these things 1st time so basic things i am not able to understand please help
I think better if you are storing the value in DB than in each page query the status of that records and accrdingly display things on the screeen.

-SG
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900