Solved

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

Posted on 2010-09-23
6
570 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
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!

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

696 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