How to create a login page and read from database in ASP.NET Web Application?

stressederic

New Member
I'm creating an ASP.NET Web application, which uses SQL database. I have created a new table in my database about users, which includes information like username, password, email, etc. I have also created a register page, where user is able to enter values and register. When he enters the required fields, and then registers, a new data entry is automatically added to the database.Now, I want to create a log in page, where the user will enter his/her username and password, the application will check the data entries in my database, and if the username/password combo exists, it will log in the user and redirect to the home page. If they don't exist, or something else, it will show an error that username/password combo is not correct.If someone can help me with some code example about how can I achieve this, I would be glad.
 
Top