Posted on: 4/13/2011 9:37:02 AM | Views : 339

I am developing a ASP.NET (C#) based application. I am usign FormAuthenticationTicket and here is my login button code.
protected void LoginButton_Click(object sender, EventArgs e) { if (AuthenticateUser("MYDOMAIN", txtUsername.Text, txtPassword.Text)) { //Fetch the role Database db = DatabaseFactory.CreateDatabase(); //Create Command object DbCommand cmd = db.GetStoredProcCommand("Users"); db.AddInParameter(cmd, "@userid", System.Data.DbType.String, 20); db.SetParameterValue(cmd, "@userid", txtUsername.Text); db.AddInParameter(cmd, "@fname", System.Data.DbType.String, 80); db.SetParameterValue(cmd, "@fname", null); db.AddInParameter(cmd, "@lname", System.Data.DbType.String, 80); db.SetParameterValue(cmd, "@lname", null); ...

Go to the complete details ...