Click here to Skip to main content
15,919,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all ,i have 3 pages .i want to give permission to one user can access 2 pages and another user access 3 pages how to do it? please any one add solution

thanks in advance
pradeep
Posted
Comments
adi007me_syn 18-Dec-12 6:06am    
Which authentication are you using on your site ?

1 solution

You must assign the page viewers (the people viewing the pages) some form of classification like...

public viewee (non member)
member viewee (registered member)
exclusive viewee (privelidged member)

One way you can do this in ASP.NET is to use ROLES.
So you would assign the roles to the members or public.

So unregistered users have role of Public
and registered users have role of Member
and admin users have role of Admin.
 
Share this answer
 
Comments
Member 9576671 21-Dec-12 1:42am    
thanks how to implement in code please tellme
Zaf Khan 21-Dec-12 12:28pm    
You can read up here

Link: http://msdn.microsoft.com/en-us/library/ms998358.aspx

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