I’ve bought ‘Build Your Own ASP.NET 3.5 Website’, downloaded the code, set up the database. The website is displaying ok but when I try and login (using zak - one of the entries in the Employees table) it just comes back with “Your login attempt was not successful. Please try again”. Anyone know why?
Well we need a little bit more to go on.
Make sure your passing the right values correctly and that the SQL is correct.
I think and this is on top of my head that sometimes the way the code is wrote it can give an error like it gave you and the problem could be something completely different i.e. unable to connect to database. because of the try and catch method only sets one form of error handling right?
I am using that book myself and sometimes I find that there are some errors in the code (but this happens alot in computing books).
I recommend do a few tests, make sure your connecting to the database fine, test out your SQL manually through SQL server and check if you are connecting to the right database / table.