Click here to Skip to main content
11,927,324 members (52,484 online)
Rate this:
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
Posted 17-Dec-12 19:46pm
adi007me_syn 18-Dec-12 6:06am
Which authentication are you using on your site ?

1 solution

Rate this: bad
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.
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


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 | Mobile
Web03 | 2.8.151126.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2015
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