Solved

Asp.net - default login and "Permission denied" pages

Posted on 2010-09-22
2
490 Views
Last Modified: 2012-05-10
How do I redirect a user to a login page that is not the default ~/Account/Login.aspx?

And how do I redirect a user to a default "Permission Denied" page?
0
Comment
Question by:Rick
2 Comments
 
LVL 51

Expert Comment

by:HainKurt
ID: 33737836
create this page

~/Account/Login.aspx?

add this into it

server.transfer("newpath/newpage.aspx", true)
0
 
LVL 13

Accepted Solution

by:
Onthrax earned 500 total points
ID: 33738852
You can alter your web.config to change the default login aspx page.


<authentication mode="Forms">
<forms loginUrl = "frmLogin.aspx" name="3345C" timeout="1"/>
</authentication>

as to the redirect. You need to verify authentication after the login button has been pressed and use the server.transfer method to redirect to a permission denied page.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

12 Experts available now in Live!

Get 1:1 Help Now