PDA

View Full Version : مشکل در شناسایی متغیر در کوئری



پیام حیاتی
جمعه 19 تیر 1394, 22:20 عصر
این کدها :

con.Open();
if (FileUpload1.HasFile)
{
string filename = FileUpload1.FileName;
FileUpload1.PostedFile.SaveAs(Server.MapPath("~\\Pic\\" + filename.Trim()));
string path = "~\\Pic\\" + filename.Trim();
}
string Query = "insert into Order_Web (w_cms , w_map , w_news , w_adion , w_template , w_forum , w_search , w_gallery , w_bazdid , w_pey, w_sms, w_product, w_music, w_video, w_payam , w_shop, w_ticket, w_yahoo, w_question, w_answer, w_download, w_moshtari, w_ghavanin, w_nazar, w_tarh, w_site, w_forms, w_contact, w_agahi, w_oghat, w_sum, w_fullname, w_email, w_phone, w_descrip, w_pic) values ('" + cms1 + "' , '" + map1 + "' , '" + news1 + "' , '" + adion1 + "' , '" + template1 + "' , '" + forum1 + "' , '" + search1 + "' , '" + gallery1 + "' , '" + bazdid1 + "' , '" + peyvandha1 + "', '" + payamak1 + "' , '" + product1 + "' , '" + music1 + "' , '" + video1 + "' , '" + payam1 + "' , '" + shop1 + "' , '" + ticket1 + "' , '" + yahoo1 + "' , '" + question1 + "' , '" + answer1 + "' , '" + download1 + "' , '" + moshtari1 + "' , '" + ghavanin1 + "' , '" + nazar1 + "' , '" + tarh1 + "' , '" + site1 + "' , '" + forms1 + "' , '" + contact1 + "' , '" + agahi1 + "' , '" + oghat1 + "' , '" + sum + "' , '" + txt_fullname.Text + "' , '" + txt_email.Text + "' , '" + txt_phone.Text + "' , '" + txt_descrip.Text + "' , '" + patch + "') ";
SqlCommand com = new SqlCommand(Query, con);
com.ExecuteNonQuery();
con.Close();


متغیر patch رو شناسایی نمیکنه؟!