RE: Web Forms Auth fails when rfValidator triggered

From: Patrick C. Cole [MSFT] (patcole@online.microsoft.com)
Date: 02/11/03


From: patcole@online.microsoft.com (Patrick C. Cole [MSFT])
Date: Tue, 11 Feb 2003 18:08:40 GMT


Jeff,

Couple of questions. Is SmartNavigation enabled for the page? Also, can you provide a repro sample of the page?

Thanks!

Patrick Cole
Microsoft Developer Communities

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2002 Microsoft Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Jeff P." <ptakja@corning.com>
| Sender: "Jeff P." <ptakja@corning.com>
| Subject: Web Forms Auth fails when rfValidator triggered
| Date: Fri, 7 Feb 2003 08:40:26 -0800
| Lines: 49
| Message-ID: <097501c2cec7$9ddb8ba0$d7f82ecf@TK2MSFTNGXA14>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcLOx53bCm7rZr/eStGqY3Xz9qBn5A==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.security
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| Path: cpmsftngxa06!cpmsftngxa08
| Xref: cpmsftngxa06 microsoft.public.dotnet.framework.aspnet.security:3905
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
|
| Hi all. Hope you can help me out with the problem I am
| seeing.
|
| I have a simple login page to my intranet-based web. It
| basically has a username field, password field and login
| button. In addition, I have 2 Required Field Validators
| on the page that insure that the username & password
| fields have text in them so I don't waste the database
| access with null data.
|
| Now, when I enter the username & password correctly, the
| authentication works as expected and I am redirected to
| the main page in my application.
|
| If I enter garbage text in BOTH fields, the authentication
| again works as expected. That is a label field is
| displayed that states that authentication failed.
|
| So far, so good.
|
| Now, if I leave either or both fields blank, the validator
| controls do their job and display the "error text" stating
| that the field can't be blank.
|
| Again, so far so good.
|
| Now, if I enter a legitimate username & password, my
| button click event gets fired, user authentication is
| performed, however, I never get redirected to the Main
| Page. Note that this ONLY fails if the required field
| validators (rfd's) are triggered to display their error
| message(s).
|
| If I REFRESH the page, re-enter my username & pwd,
| everthing works fine.
|
| I have enabled the TRACE function and noticed that the
| Authentication ticket (cookie) doesn't get set after the
| rfd's are triggered.
|
| I am puzzled as to why this doesn't work and am stumped on
| how to go about fixing it.
|
| Any help or guidance would be appreciated!
|
| Thanks!
|
| Jeff Ptak
| Corning, Inc.
|