???????? String sql = string.Format("update goods set gooname='{0}',goospecial='{1}'," +??????????????? "goonumber={2},gooprice={3},busiid={4} where goodid={5}",??????????????? txtbGooName.Text.Trim(),??????????????? txtbGooSpecial.Text,??????????????? txtbGooNumber.Text,??????????????? txtbGooPrice.Text,??????????????? cmbBusiId.SelectedValue,??????????????? _goodid);想讀取文本框中的數據,然后修改數據庫中的數據,但number和price是int和money類型的,一旦文本框中為空就會報錯,求助
求助,當文本框中為空時就會報錯
一條有鹽值的咸魚
2019-01-02 15:07:34