Click here to Skip to main content
13,405,146 members (55,645 online)
Rate this:
 
Please Sign up or sign in to vote.
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 17-Dec-12 19:46pm
Comments
adi007me_syn 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web01 | 2.8.180221.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2018
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