i need a code for login button in c#. I HAVE 2 fields username and password and login button and back end as sql server i have created a table my name register it has login and password fields. once i click on login button it should login if the user data is correct of not it should error.
can anyone help with this in writing the code.
What I have tried:
i have tried in connecting to the database to access the existing fields i.e., username and password.