I am trying to insert this file on mySql database.I already allowed nulls on my database still I get this errors.
Additional information: Cannot insert the value NULL into column 'orderId', table 'MejOnlineManagementDB00.dbo.orders2'; column does not allow nulls. INSERT fails.
protected void btnSend_Click(object sender, EventArgs e)
{
con.Open();
cmd = new SqlCommand(@"INSERT INTO orders2
(orderName,orderFile,orderPrice,orderQuantity,orderShipped)
VALUES
('"+DropDownList1.SelectedValue+"','"+lblFile.Text+"','"+lblPrice.Text
+"','"+txtQuantity.Text+"','"+DateTime.Now+"')",con);
cmd.ExecuteNonQuery();
con.Close();
lblFinished.Text = "Order has been submitted for process.";
}