I just want to create one page like the following :
UserName : “Text Box1”
Password : “Text Box2”
Well in this page we have to enter username in TextBox1 and Password in TextBox2 and then when you click on Login Button then it needs to connect to the database and it has to look the data into the following table.
Login(Table Name): Id UserName PassWord
1 abc 123
2 def 456
I need code for the following
After Enter the username and password when you click to the button it has to come to the above table and it has to check in Username column is that available or not and then it needs to check for that particular password in the password column.
I want code for the above .
Please let me know if the question is not clear(need code in C# and database is SQL Server)