Hello, I am new to asp.net. I am using visual studio 2010 express version.

1. I have a log in page with text boxes to accept username and password for admin.

2. Two buttons to rest and login.

3. I already created a sql server database connection from the server explorer.

4. I created a table called admin with columns username and password and filled in data test test.

5. Now my idea is:
when I click on login, it has to check for the username and password and match with the username and password in the database. If it matches, then it should allow to go further or redirect to the home page. Please provide me with the detail way so that I can do this small part. I am a student and want to learn. I checked the post and I liked it. but i could not understand what to do. so kindly let me know in a step by step manner.

after you check for username and password in database you can redirect

System.Web.Security.FormsAuthentication.RedirectFromLoginPage(username, False)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.