ASP .NET Response类型

it2022-06-23  90

.ContentType .htm,.html Response.ContentType = "text/HTML"; .txt Response.ContentType= "text/plain"; .doc,.rtf, .docx Response.ContentType = "Application/msword"; .xls,.xlsx Response.ContentType = "Application/x-msexcel"; .jpg,.jpeg Response.ContentType = "image/jpeg"; .gif Response.ContentType = "image/GIF"; .pdf Response.ContentType= "application/pdf";

转载于:https://www.cnblogs.com/Lulus/p/7905380.html


最新回复(0)