Solved

asp.net - How to verify is user has permission to access page?

Posted on 2010-09-23
6
520 Views
Last Modified: 2012-05-10
In a asp.net website that uses "Forms" authentication, how do I verify if a user has permission to access a page?

Usually, if a user doesn't have permission to access a page, he/she gets redirected to the default login page. How do I check if he/she has permission to access a page before he/she gets redirected to login?
0
Comment
Question by:Rick
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:ajb2222
ID: 33744359
0
 
LVL 13

Author Comment

by:Rick
ID: 33745219
How to check if a user is in a specific role before he/she gets redirected to login?
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 33746059
What exactly you are looking for ...apart from knowing if user is authorized to access the page?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 13

Author Comment

by:Rick
ID: 33746640
If the user is not authorized to access the page, then redirect him/her to some page (other than the login page).
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 33746714
0
 
LVL 13

Author Closing Comment

by:Rick
ID: 33746758
Very nice! Thank you.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now