MSDN – Explore Desktop, Web, Cloud, and Phone Software Development. Part 1 of 5: Adding data to SQL Server with C# and ADO.Net. Login - check database if user exists... (c#) Fredde | Posted 9:48am 5.
October 2007 Server Time | Can't you just reverse the if statement? If (strResult.Length > 0){ Label1.Text = "YOU ARE LOGGED IN! ";}