ASP.NET prompt client download file

zhaozj2021-02-16  57

Response.contentType = "Application / Msword"; Response.Appendheader ("Content-Disposition", "Attachment; FileName = Test.txt"); Response.Write ("ASDF"); response.end ();

ContentType can be viewed from the IIS Manager Properties of Server 2003

转载请注明原文地址:https://www.9cbs.com/read-15180.html

New Post(0)