ashx 导出excel 时无反应
$.get("../ajax/manage/frm_record.ashx?id="+randstr,{functionName:"aa",paralst:encodeU...
$.get(
"../ajax/manage/frm_record.ashx?id=" + randstr,
{ functionName: "aa", paralst: encodeURIComponent(para) },
function(data) {
}
);
aa是导出excel的代码:
public void aa(HttpContext context)
{
DataTable dt=bll.GetAllList().Tables[0];
Dictionary<String, String> dic=new Dictionary<string,string>();
dic.Add("users","编号");
exportExcel(dt, dic, context);
//excel.ToExcel("123123");
} 展开
"../ajax/manage/frm_record.ashx?id=" + randstr,
{ functionName: "aa", paralst: encodeURIComponent(para) },
function(data) {
}
);
aa是导出excel的代码:
public void aa(HttpContext context)
{
DataTable dt=bll.GetAllList().Tables[0];
Dictionary<String, String> dic=new Dictionary<string,string>();
dic.Add("users","编号");
exportExcel(dt, dic, context);
//excel.ToExcel("123123");
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询