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

  • Home
  • SEARCH
  • 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 7854977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:14:53+00:00 2026-06-02T20:14:53+00:00

I have a login control in an asp.net page. On MSDN it is specified

  • 0

I have a login control in an asp.net page. On MSDN it is specified that the FailureText property, if not specified, defaults to
“Your login attempt has failed. Please try again.”

I needed to enter a custom message on failed login on the Login1_LoggingIn event, so that when the password is entered 4 times incorrectly , the account is locked and I notify the user on this event.

However, after the lock time expires, I need to revert to the default “Your login attempt has failed. Please try again” msg. is there any way to revert the FailureText property to its default state?

The problem is that if I overwrite the FailureText on the above mentioned event, it stays that way for all subsequent postbacks.

thanks,

  • 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-02T20:14:54+00:00Added an answer on June 2, 2026 at 8:14 pm

    You should be able to just hook into the Login1_LoginError event and change the message from there, you can then decide what to display each time a failure occurs i.e

    private void Login1_LoginError(object sender, EventArgs e)
    {
        failureCount++; //Retrieve this from Database or something
    
        if (failureCount >= 4)
        {
            Login1.FailureText = "Account is locked";
        }
        else
        {
            Login1.FailureText = "Your login attempt has failed. Please try again";
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET login control on a page, with the Remember Me checkbox
I have a simple, single-page in ASP.NET (C#). I wanted to add login control,
I have an ASP.NET web page with a Login control on it. When I
I'm new to web development. I have a login.aspx page that has an Asp.Net
I have an ASP.net Login Control which has a link to CreateUserWizard page(register). When
In my page I have a login control: <asp:Login ID=EMSLogin runat=server OnAuthenticate=EMSLogin_Authenticate> <LayoutTemplate> <asp:Panel
I have an ASP.NET WebForms page with forms authentication. When users create a login,
I'm using the ASP.NET/C# Login control and that entire authentication and authorization system. I
Just starting out in asp.net. Have just created a login.aspx page in my site
I have a question about the login control of asp.net. I defined on my

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.