摘要: 本文介绍了一种在ASP.NET中下载文件的方法。 方法一:可能是最简单的、最短的方式:1 Response.ContentType = "application/pdf";2 Response.AppendHeader("Content-Disposition", "attachment; filename=MyFile.pdf");3 Response.TransmitFile(Server.MapPath("~/Files/MyFile.pdf"));4 Response.End(); 第一步是设置文档内容的类 阅读全文
posted @ 2014-03-28 15:18 dean.wei 阅读(1116) 评论(0) 推荐(0)
摘要: 开发工具: MyEclipse 10.0项目目录:[http://www.cnblogs.com/rhythmK/]1.新建项目:File->New->Web Project 项目名: SpringMVC32.添加 Spring 3.0 Core Libraries 以及 Spring 3.0 Web Libraries 包/webroot/Index.jsp:My JSP 'index.jsp' starting page This is my JSP page.MVC /login/welcome /welcome /webroot/WEB-INF/... 阅读全文
posted @ 2014-03-28 11:50 dean.wei 阅读(317) 评论(0) 推荐(0)