I am getting an exception:
Incorrect syntax near ','.
in following query: please help.
I have tried it in many ways but not it does not work. Even when I try to insert a single value I still get this exception.
cmd = new SqlCommand("insert into purchaseOrder_master(sup_id,po_date,required_date,tot_amt,uid,potime) values("+supid.Text +",'"+podate.Value.Date+"','"+reqdate.Value.Date+"',"+pocost.Text +","+uid.Text +",'"+potime.Value.TimeOfDay +"')", con);