I have a registration page where the user can enter email into mail.Text and password into pass.Text, but when I click the enter button I get an error, it seems the sytem thinks the hashed password and the email address are column names so I get inavlid column names followed by the entered email and hashed password, I'm not sure what I've done wrong but I think it may be to do with my INSERT function.
private void enterdetails_Click(object sender, EventArgs e)
{
string query = String.Format("INSERT INTO tbl_register(email,password) VALUES({0},{1})",
mail.Text,Hashing.ComputeHash(pass.Text, Supported_HA.SHA256,
ASCIIEncoding.ASCII.GetBytes("Supported_HA.SHA256")));
SqlConnection sqlconn = new SqlConnection(@"");
sqlconn.Open();
SqlCommand comm = new SqlCommand(query, sqlconn);
comm.ExecuteNonQuery();
sqlconn.Close();
}