Solved

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

Posted on 2010-09-23
6
566 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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