We help IT Professionals succeed at work.
Get Started

Code for Login Page ??

chpk
chpk asked
on
628 Views
Last Modified: 2013-11-23
I just want to create one page like the following :
         UserName :  “Text Box1”
         Password  :  “Text Box2”
                      Login(Button)
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)
Comment
Watch Question
Top Expert 2013
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE