خرید بک لینک

سلام
مشکل این کد چیه که بدون خطا اجرا میشه اما آپدیت نمیکنه.!!

 OleDbCoection con = new OleDbCoection();
OleDbCommand com = new OleDbCommand();
con.CoectionString = @"provider=microsoft.Ace.oledb.12.0;" + @"data source=" + Application.StartupPath + "\cart.accdb";
com.Coection = con;

com.CommandText = "update bimar set bname=@bname ,bfamily=@bfamily ,namefather=@namefather where bid=@bid";

com.Parameters.AddWithValue("@bid", noparvandelbl.Text);
com.Parameters.AddWithValue("@bname", bnametxt.Text.Trim());
com.Parameters.AddWithValue("@bfamily", bfamilytxt.Text.Trim());
com.Parameters.AddWithValue("@namefather", fatheametxt.Text.Trim());

con.Open();
com.ExecuteNonQuery();
con.Close();

برچسب: نویسنده: محمد رضا جوادیان تاريخ: جمعه 14 خرداد 1395 ساعت: 15:07

صفحه بندی