10 pts.
 Login Application
I would like to store mutiple usernames and passwords and login with the click of a button.

Software/Hardware used:
ASKED: June 20, 2009  12:55 AM
UPDATED: June 29, 2009  4:50 PM

Answer Wiki:
What Kind of programming language do you want to use ? if it is visual Studio then you need iis to be installed and configured Install Configure IIS: Click on Start Menu, choose control panel Click on Switch to classic view link Click on Add or Remove Programs icon Click on Add/Remove Windows Components icon. Double Click on Internet Information Services (IIS) option: Select all the check boxes and click on OK button Click on Next button; it starts configuring the selected components If everything goes correctly; you'll get the message like "you have successful completed the windows components wizard" Finally click on Finish button Code for user checking SqlConnection con = new SqlConnection("Data Source=ServerName; Initial Catalog=MyTesting; Integrated Security=true;"); SqlCommand cmd = new SqlCommand(); cmd.Parameters.AddWithValue("@UserName", txtUname.Text.Trim()); cmd.Parameters.AddWithValue("@Password", txtPword.Text.Trim()); cmd.CommandText = "Select * from Login where UserID=@UserName and Password=@Password"; cmd.Connection = con; SqlDataReader dr; con.Open(); dr = cmd.ExecuteReader(); if (dr.Read()) { FormsAuthentication.RedirectFromLoginPage(txtUname.Text, false); } else { lblErrorMsg.Text = "Invalid Login!"; lblErrorMsg.ForeColor = System.Drawing.Color.Red; txtUname.Focus(); } Regards, Bilal
Last Wiki Answer Submitted:  June 20, 2009  7:45 am  by  Bilalhanbali   45 pts.
All Answer Wiki Contributors:  Bilalhanbali   45 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Is this something that can be handled with Firefox or IE? They can store multiple user names and passwords for this.

 10,860 pts.