Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 7th, 2003, 03:26 AM
Registered User
 
Join Date: Sep 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with web.config authentication

i have a form mode authentication like this..

<authentication mode="Forms" >
<forms name="AuthName" loginUrl="/Login.aspx/" timeout="2" protection="All" path="/">
<credentials
passwordFormat="MD5">
          <user name="admin" password="admin"/>
        </credentials>
</forms>
<passport redirectUrl="Login.aspx"/>
</authentication>

From my login page if i try to access this credentials or validate this credentials its always returning false,
Iam checking this credentials like this

private void btnLogin_Click(object sender, System.EventArgs e)
{
if(FormsAuthentication.Authenticate(txtUserName.Te xt,txtUserPwd.Text))
{
FormsAuthentication.RedirectFromLoginPage(txtUserN ame.Text,chkRememberMe.Checked);
}
else
{
btnLogin.Text="Sorry Try again !";
}


even though iam giving "admin" and "admin" as username and password in login page its always going to else part rather than gng to redirect page.

plz help me in this regard

thanks in advance
vishnu






Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Authentication in Web.Config Janag ASP.NET 1.x and 2.0 Application Design 1 February 5th, 2014 08:42 PM
Web.Config problem darkestangel1980 ASP.NET 1.0 and 1.1 Basics 1 July 2nd, 2007 06:31 AM
Web.Config problem? toddw607 ASP.NET 2.0 Basics 15 April 2nd, 2007 03:32 PM
problem in web.config chandanbhakuni ADO.NET 2 September 22nd, 2006 07:11 PM





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