屈中恒vicky,恶徒怀里的小猫咪,邪恶漫画色系全集
httpresponse resp = system.web.httpcontext.current.response;
resp.charset = "utf-8";
resp.clear();
resp.appendheader("content-disposition", "attachment;filename=" + filename + ".xls");
resp.contentencoding = system.text.encoding.utf8;
resp.contenttype = "application/ms-excel";
string style ="<meta http-equiv=\"content-type\" content=\"application/ms-excel; charset=utf-8\"/>"+ "<style> .table{ font: 9pt tahoma, verdana; color: #000000; text-align:center; background-color:#8ecbe8; }.table td{text-align:center;height:21px;background-color:#eff6ff;}.table th{ font: 9pt tahoma, verdana; color: #000000; font-weight: bold; background-color: #8ecbea; height:25px; text-align:center; padding-left:10px;}</style>";
resp.write(style);
//resp.write(exporttable(list));
resp.write("<table class='table'><tr><th>" +"手机"+ "</th><th>" + "渠道" + "</th><th>" +"时间" + "</th></tr>");
//dbvideolist = (list<subshiyongmodel>)session["dbvideolist"];
foreach (buflow.model.orderhistory model in orderlist)
{
resp.write("<tr><td>" + model.phone + "</td>");
resp.write("<td>" + model.qudao + "</td>");
resp.write("<td>" + model.tm + "</td>");
resp.write("</tr>");
}
resp.write("<table>");
resp.flush();
resp.end();
}
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论