PDA

View Full Version : مشکل ایم error چیه؟



amir200h
دوشنبه 23 اردیبهشت 1392, 19:50 عصر
سلام به همه دوستان.
من موقع درج در بانکم با مشکل زیر روبه رو شدم


string sql = "insert into noskhe (codenb,idbimar,iddaro,datesabt,tedadedaro,gheymat ,franshiz,gheymatepardakhti) ";
sql += "values ('{0}','{1}','{2}','{3}',{4},{5},{6},{7})";
sql = string.Format(sql, txtnoskhe.Text, txteshterak.Text, dataGridView1.Rows[i].Cells[3].Value, txtsabt.Text, dataGridView1.Rows[i].Cells[4].Value, dataGridView1.Rows[i].Cells[5].Value, dataGridView1.Rows[i].Cells[6].Value);
com.CommandText = sql;