Solved

Change Login.aspx auto redirect Page

Posted on 2011-02-23
2
742 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
ID: 34965409
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
ID: 34969364
Worked perfectly, I had already found this out, but this is the solution none-the-less.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

837 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