I was researching around the internet and I came across bits and pieces. I want to create a small app (login page /already done/ ). Previously I used something like this
if ( usename!= foo and pass !=bar) messageboxshow wrong username and password
A super-simple solution.
However I now have to use a SQL Server 2008 database table to verify the username and password. Sadly I don't know how.
I tried the examples posted here http://www.daniweb.com/software-development/csharp/threads/368722
and the official MSDN but I couldn't get it to work.
Is there a very simple solution for this.
And if there is not how would I handle all my database connections using data access layers, which I think is along the lines of tiered programming