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 6331261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:01:46+00:00 2026-05-24T18:01:46+00:00

I have a asp.net web application, that allows users to login and logout. When

  • 0

I have a asp.net web application, that allows users to login and logout. When a user logs in (no problem) its says Welcome Username, which is fine. But next to it still says login. Can anyone help me is there some property i need to set on Logged in? Thanks for any help.

<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                    <AnonymousTemplate>
                        [ <a href="~/Account/Login.aspx" id="HeadLoginStatus" runat="server">Log In</a>
                        ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        <span class="bold">Welcome</span><span class="bold">
                            <asp:LoginName ID="HeadLoginName" runat="server" />
                        </span>! [
                        <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out"
                            LogoutPageUrl="~/" />
                        ]
                    </LoggedInTemplate>
                </asp:LoginView>

protected void LoginUser_Authenticate(object sender, AuthenticateEventArgs e)
    {
       SqlHelper userLogin = new SqlHelper();
        TextBox User = (TextBox) LoginUser.FindControl("UserName");
        TextBox Password = (TextBox) LoginUser.FindControl("Password");
        bool results = userLogin.UserLogin(User.Text, Password.Text);
        e.Authenticated = results;
    }
  • 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-05-24T18:01:47+00:00Added an answer on May 24, 2026 at 6:01 pm

    You have two controls with an ID of HeadLoginStatus. Is there a reason for that? Secondly, have you tried removing EnableViewState=”false”?

    EDIT

    Try changing the startup page to a page in the root directory, if it’s not already. See if this makes any difference.

    I seemed to have found the problem..or a solution depending on how you
    view it.

    I had my startup page set to a page in a sub directory and not in the
    root. I changed the startup page to be a page in the root (which is
    where login.aspx exists) and now it works as expected. I do not think
    it should have acted like this though.

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

Sidebar

Related Questions

We have created a web application, using ASP.NET, that allows users to upload documents
I have a ASP.NET web application that allows end users to upload a file.
I have an ASP.NET web application that has a fileupload control to allow users
We have an asp.net application that allows users to upload files, the files are
I have written an ASP.NET MVC application that allows the user to specify their
My ASP .Net C# web application allows its users to send files from their
I have an ASP.NET web application that is using forms authentication. Everything is configured
I have an ASP.NET web application that, for whatever reason, when it is deployed
We have a asp.net 2.0 web application that is running on IIS7. It is
Suppose you have two seperate ASP.NET Web Application projects that both need to use

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.