?
Solved

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

Posted on 2010-09-23
6
Medium Priority
?
591 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 2000 total points
ID: 33746714
0
 
LVL 13

Author Closing Comment

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

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month16 days, 17 hours left to enroll

864 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