Solved

Change Login.aspx auto redirect Page

Posted on 2011-02-23
2
739 Views
Last Modified: 2012-05-11
I have Roles and Users enabled on my VB website, but if a user tries to access a page that they do not have access to, it attempts to redirect them to login.aspx, but I dont have this page, as I have a login on all pages, and just want to simply return them to the homepage.

How do I do this?

Thanks

Chris
0
Comment
Question by:CHKillswitch
2 Comments
 
LVL 13

Accepted Solution

by:
gamarrojgq earned 500 total points
Comment Utility
Hi,

What authentication mode are you using? it sounds like your webconfig file is setting in FORMS mode, if this is right, then you just change the redirect page to your HomePage

Hope it helps
<authentication mode="Forms" >
      <forms loginUrl="HomePage.aspx" />      
    </authentication>

Open in new window

0
 

Author Closing Comment

by:CHKillswitch
Comment Utility
Worked perfectly, I had already found this out, but this is the solution none-the-less.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

772 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

10 Experts available now in Live!

Get 1:1 Help Now