Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 17-Dec-12 18:46pm
Comments
adi007me_syn at 18-Dec-12 6:06am
   
Which authentication are you using on your site ?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Member 9576671 at 21-Dec-12 1:42am
   
thanks how to implement in code please tellme
Zaf Khan at 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)

  Print Answers RSS
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 202
2 Richard MacCutchan 185
3 PhilLenoir 154
4 Sharmanuj 146
0 Sergey Alexandrovich Kryukov 5,999
1 OriginalGriff 5,115
2 CPallini 2,473
3 Richard MacCutchan 1,597
4 Abhinav S 1,505


Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100