Hi all,
I decided to rewrite my login code because my last one would only find the first record and anything after that first record (additional records) werent even found but they were in the database (mssql express).
I have a function that returns the connection string as follows:
I then have a public object for my connection and then I assign the connection string as follows:vb Code:
Public Function ConString() As String Return "Data Source=.\SQLExpress;Initial Catalog=CorpScore;User Id=MyUsername;Password=MyPassword;" End Function
When I enter in values in the username and password textboxes and click on the login button, it should do many checks and then log in if those checks are met for being valid. However, when i click on the login button, I get no errors and nothing happens at all. I even went to do a breakpoint and that isnt even executed. nothing happens at all. Please see code in the following three posts and advise if you see anything out of place. i am pretty new to .net so bear with me. the code is pretty long.....vb Code:
Public m_objCon As New SqlClient.SqlConnection(ConString)




Reply With Quote