re:
What am I doing wrong?
The FormsAuthentication.Authenticate Method is not the proper tool to use.
The Authenticate method verifies user credentials that are stored in the
credentials section of the application configuration file, not in the Membership database.
If you have created a login form, you can prompt the user for a user name
and password and then call the ValidateUser method to perform the validation.
There's sample code at :
http://msdn2.microsoft.com/en-us/lib...idateuser.aspx
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"shapper" <md*****@gmail.comwrote in message
news:11**********************@n67g2000cwd.googlegr oups.com...
Hello,
I am creating a user as follows:
Membership.CreateUser("user", "pass", "us**@domain.com")
I checked the SQL tables and the user is there.
Then I tried to authenticate the user as follows:
Response.Write(FormsAuthentication.Authenticate("u ser",
"pass").ToString)
It allways gives me false.
What am I doing wrong?
Thanks,
Miguel