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

The Archive Base Latest Questions

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

When try to access site i created after 3 login attempts it gives unauthorised

  • 0

When try to access site i created after 3 login attempts it gives unauthorised access error-401. how can i reload page after 3 attempts in asp.net. Any help is appreciated.

  • 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-06T13:15:18+00:00Added an answer on June 6, 2026 at 1:15 pm

    The best way is to store and manage these thing at backend(mean to say at SQL SERVER or any other server). If you are using the SQL SERVER then follow the following steps:
    1). add a new column of int type in table named as invalidattempts
    2). Now in logincheck Stored Proc, if the username and password are not authorized then update invalid column in table. and write the following code.

    Declare @PasswordDB varchar(100)
    Declare @InvalidDB int
    if exists(select 1 from tblUser where email=@email)
    begin
        set @PasswordDB= (Select password from tblUser where email=@email)
        if @PasswordDB=@Password
            begin
                    print'login Successfully.'
            end
        else
            begin
                set @InvalidDB=(select invalidattempts from tblUser where email=@email)
    update tblUser set invalidAttepmts=@InvalidDB+1 where email=@email 
    select 3
    end
    end
    else
    begin
    select 2
    print'username does not exists.'
    end
    

    When you got 3 from sp then show an alert message that “You have made 3 invalid attempts thats is”

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

Sidebar

Related Questions

Every time I try to access my localhost/phpmyadmin it gives me this error --->
The error message I gen when I try to access the web page server
When I try to access my site, then check my Heroku logs, I see
I try to access session variables stored on a different page. When I have
I'm writing an ASP.NET C# web site that needs to access data from a
I have an ASP.NET site that I am trying to access div elements by
I try to access the MainContentBlock control from the aspx, but unable to do
When you try to access a key which isn't in a Dictionary (for example),
When I try to access info that is not presented in xml like so:
We know that if we try to access a nonexistent key of std::map with

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.