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 Bilalhanbali45 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Is this something that can be handled with Firefox or IE? They can store multiple user names and passwords for this.