Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2009, 02:38 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Arrow How to make users notify about their faliure login attempts

Hi guys,
Anyone reading this thread can please help me in the topic above mentioned.?

However there is one property regarding this "maxInvalidPasswordAttempts" in conjunction with "passwordAttemptWindow" , but please tell me how these two can be used to notify users about their failure attempts.

I have 1 more question to ask.
In pages like ContactForm.aspx, I have used a label to display a success or failure message to user after submitting form

Code:
<asp:Label ID="lblMessage" runat="server" Text="Message Sent" Visible="false"></asp:Label>
Is there possible to have a message box rather than having simple label control?
I have already added a reference of "System.Windows.Forms" class in the root directory of the site. And then have added the namespace in code behind file of that user control.

Code:
using System.Windows.Forms;
And if it is possible then on clicking the OK button of message box, how it will be redirected to the same ContactForm.aspx page....

Any assistance will lead these 2 exercises to completion.
 
Old October 2nd, 2009, 10:29 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What are you using to check/validate logins? Can you capture the event or condition when the validation logic decides that too many attempts have been made? Then you simply show the user a message on the page.

You can't use Windows forms classes (i.e. MessageBox) in a web application. The code is running on the server not the client. So if you tried to launch a message box, it would show up on the server which wouldn't do much good.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie





Similar Threads
Thread Thread Starter Forum Replies Last Post
users login problem luisman_luisman BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 November 12th, 2009 03:48 PM
How to make users notify about their failure login attempts jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 September 27th, 2009 06:39 AM
Sometimes Users lost the login Maxxim BOOK: ASP.NET Website Programming Problem-Design-Solution 2 September 20th, 2006 02:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.