C#:返回前台 AJAX调用语句的写法
A = string.Format("<script>alert('填写不全,请检查再试!');location.href='{0}'</script>", Url.Action("Upload")); return Content(A, "text/html");
return Json(Content("排程错误!", "text/html"), JsonRequestBehavior.AllowGet);
string DateTemp = Convert.ToString(String.Format("{0:d}", dtDate.Rows[0].ItemArray.GetValue(j - 1))); DateTime.Parse(DateTime.Now.ToString("yyyy-MM-01")).AddDays(-1).ToShortDateString() ;//上月最后一天
DateTime.Now.Date.ToString("yyyy-M-d"); //Convert.ToString(String.Format("{0:M-dd}", tempTal.Rows[J][0])); //Convert.ToString(String.Format("{0:yyyy-MM-dd}", tempTal.Rows[J][0]));
[SQL的Format写法]
string sql = string.Format("SELECT * FROM [{0}] where (F3='本体' or F3='包装' or F3='类别') and F4 is not null", "系列别生产日程报表$");
//查询字符串
//============
SQL: