aegisada
//JS前端代码
function
Exportqmdltb() { var areavalue= GetQmdltmValue(); $.ajax({ type: "post", dataType: "text", url: "./GisUtility/GeometryHelper.ashx",//文件路径 data: { "action": "exportqmdltb", "areavalue": areavalue }, beforeSend: function () { }, complete: function () { }, success: function (data) { alert("导出成功:"+data); }, error: function (ex) { alert("导出失败:" + ex); } }); }
 //GeometryHelper.ashx文件代码(后台代码)
public void ProcessRequest(HttpContext context)
        {
            string pGeoJson = string.Empty;

            if (context.Request.Params["action"] == "exportqmdltb")//
            {
                string areavalue = context.Request.Params["areavalue"];
                string tile = "面积统计表";
                pGeoJson= CommUtility.ExportQmdltb2Excel(tile,areavalue);//要调用的后台方法
            }
            context.Response.Write(pGeoJson);//返回到前端的结果

        }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2022-01-31
  • 2021-07-08
猜你喜欢
  • 2022-03-10
  • 2022-12-23
  • 2021-10-26
  • 2022-01-14
  • 2021-10-25
  • 2022-01-11
相关资源
相似解决方案