Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
admin can see all pages.,
admin will create users along with
username and password., as well as
he will choose the .aspx pages to which
users should access those pages only the concern
users can interact,
Posted
Updated 3-Jul-12 19:51pm
v3
Comments
OriginalGriff 4-Jul-12 1:00am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.

Hi ,
Well you can make table and list all pages on it , Table will be like ID , page name , Flag .
Flag Column will be bit True/False and there will be like Junk table between user and Page Table you can assign for each user what pages he will access to it .this is for DataBase .
For Application you can make your own class for security module or simply you can make session contains all Accessible page for user and on every page check on this session if he authorized to access to this page or not .
Hope i get it right and this help you.
Best Regards
M.Mitwalli
 
Share this answer
 
Comments
Umapathi K 4-Jul-12 2:20am    
after i login i used master page., in the master page how to hide the other pages to restrict users
Mohamed Mitwalli 4-Jul-12 2:28am    
After you retrieved the data from your Database Check on it on your master page if user have access to page or not if he doesn't you can redirect him on any page
As per your question, I am currently making out that you need to provide Admin user complete access and restrict other users based on their roles. Have a look at below Answer thread:
how to show or hide something in inner page for different users[^]
 
Share this answer
 
Well, what you ask is best handled by ASP.NET inbuilt Roles. Admin can set different roles and assign users one of the roles. Application will be role driven for the logged in user.

Have a read on these to get more knowledge on how it is set and works:
Video: ASP.NET Tutorial - Membership and Roles - Part1[^]
MSDN: How To: Use Role Manager in ASP.NET [^]
Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^]
 
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