HttPost HttpGet

        /// <summary>
        /// formprintquery界面 新增 编辑
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        public int InsertOrUpdateFormPrintFile()
        {
            HttpContext context = HttpContext.Current;

            int retvalue = 0;
            if (context.Request.Form.Count > 0)
            {
                string postdata = context.Request.Form[0].AsEnumerable().ToString();
                retvalue = PublicDA.InsertOrUpdateFormPrintFile(postdata);
            }
            return retvalue;
        }


DataTable maindt = JSONHelphers.JsonToDatableWithJsonNet(postdata);
filename = maindt.Rows[0]["filename"].ToString();

 

 

posted on 2020-10-22 14:44  RookieBoy666  阅读(135)  评论(0编辑  收藏  举报