protected void Button1_Click(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("Insert into customer(Id, Name, Email, Address, Number, Date, Donation) Values (@Id, @Name, @Email, @Address, @Number, @Date, @Donation)", con);
cmd.Parameters.AddWithValue("@Id", tb1.Text);
cmd.Parameters.AddWithValue("@Name", tb2.Text);
cmd.Parameters.AddWithValue("@Email", tb3.Text);
cmd.Parameters.AddWithValue("@Address", tb4.Text);
cmd.Parameters.AddWithValue("@Number", tb5.Text);
cmd.Parameters.AddWithValue("@Date", Calendar1.SelectedDate.ToShortDateString());
cmd.Parameters.AddWithValue("@Donation", tb7.Text);
cmd.ExecuteNonQuery();
con.Close();
loadGrid();