Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 August 24th, 2007, 05:53 AM
Authorized User
Join Date: May 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to swifty_programmer
Default FormsAuthentication

Hi all,
I started a new project today and started implementing Formsauthentication.
But on click of the LoginButton after complete username and password, the following method always return false even if credentials are correct.

 if (FormsAuthentication.Authenticate(_tUsername.Text, _tPassword.Text))

this is a section of my web.config:
    <authentication mode="Forms">
      <forms loginUrl="Login.aspx">
          <user name="jeff" password="test" />
          <user name="lawrence" password="test" />
      <deny users="?" />

The project is a ASP.NET 2.0 WebApplication (AJAX Enabled).
I must oversee something, can anybody help? Thx in advance!


Similar Threads
Thread Thread Starter Forum Replies Last Post
FormsAuthentication whfang ASP.NET 1.x and 2.0 Application Design 1 January 16th, 2007 05:42 PM
FormsAuthentication Class g2000 ASP.NET 2.0 Basics 2 November 24th, 2005 01:43 AM
FormsAuthentication not declared! Renu ASP.NET 1.0 and 1.1 Basics 2 October 6th, 2004 10:29 AM
FormsAuthentication.RedirectFromLoginPage shaileshmark General .NET 5 August 19th, 2004 05:17 PM
FormsAuthentication Class alyeng2000 ASP.NET 1.0 and 1.1 Basics 7 March 3rd, 2004 02:19 AM

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