con.Open();
SqlCommand cmd2 = new SqlCommand("Update diesel set Billno = '" + cb_billno.Text + "',Date = '" + dateTimePicker1.Text + "',Dieselcost = " + textBox1.Text + ",Dieselservice=" + txt_dieselservice.Text + ",Servicetax= " + txt_servicetax.Text + ",Educess = " + txt_educess.Text + ",Addcess = " + txt_addcess.Text + ",Sertax= " + txt_sertaxtot.Text + ",Totbill= " + txt_totbillvalue.Text + " ,Flag='" + radioButton1.Text+"','" + radioButton2.Text+"' where SNO = " + cb_sno.Text + "", con);
cmd2.ExecuteNonQuery();
con.cose();
}