string connectionString = ConfigurationManager.ConnectionStrings["TestConnectionString"].ConnectionString;
connection = new SqlConnection(connectionString);
connection.Open();
string sql = "SELECT * from Member where member='" + member + "' And Password='" + password + "'";
Response.Write(sql);
SqlCommand cmd = new SqlCommand("INSERT INTO LoggedInUsers (@LoginTime)", connection);
cmd.Parameters.Add("@LoginTime", SqlDbType.DateTime).Value = tm;
command = new SqlCommand(sql, connection);
But when I sign in at the login page, the database did not capture the time that I signed in.