Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8952777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:56:58+00:00 2026-06-15T13:56:58+00:00

I use the following login controls. Problem is if user logs in correctly it

  • 0

I use the following login controls. Problem is if user logs in correctly it automatically redirects to default.aspx. I just want it to stay on the login page. Any ideas?

code:

<form id="form1" runat="server">
<h1>Log in to Management</h1>



    <p>
&nbsp;<asp:LoginView ID="LoginView1" runat="server">
            <AnonymousTemplate>
                <asp:Login ID="Login1" runat="server" 
    CreateUserText="Sign Up for a New Account" CreateUserUrl="SignUp.aspx">
                </asp:Login>
            </AnonymousTemplate>
            <LoggedInTemplate>
                You are already logged in!
            </LoggedInTemplate>
        </asp:LoginView>
    </p>
    <p>
        <asp:LoginStatus ID="LoginStatus1" runat="server" />
    </p>
    </form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:56:59+00:00Added an answer on June 15, 2026 at 1:56 pm

    On the web.config file change the defaulturl property to login.aspx if you want it to redirect to that page. I assume login.aspx is your login page.

    <authentication mode="forms">
    <forms loginurl="index.aspx" defaulturl="login.aspx"/>
    </authentication>
    

    MSDN links:
    http://msdn.microsoft.com/en-us/library/ka5ffkce.aspx
    http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.defaulturl.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the following code to login to a website which returns
I have the following problem when trying to use the login.jsp I have the
I use the following URL setting to authorize Facebook login. But the page for
I just use following code to add an image to my project, var paper
I want preserve original value of target field and use json_decode to use following
I have 2 login controls on a web application one on default and one
I use following style attribute so when i will start typing in text box
I use following code: Create a retry policy, when error, retry after 1 second,
When i use following: var child:DisplayObjectContainer = dso.getChildAt( dso.numChildren -1 ) as DisplayObjectContainer; trace(child);
for example i use following command to find a record SELECT `users`.`mail` FROM `users`

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.