|
反馈BUG
程序版本: |
FineUI v3.3.3 |
浏览器: |
IE10 |
BUG截图: |
|
BUG地址: |
- |
页面上有一Grid表,点节查看,出现错误(如图)
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) //查看
{
if (e.CommandName == "Action1")
{
string fileName = Server.MapPath("text.docx");//
FileInfo DownloadFile = new FileInfo(fileName);
HttpResponse Response = HttpContext.Current.Response;
Response.Clear();
Response.ClearHeaders();
Response.Buffer = false;
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(fileName), System.Text.Encoding.UTF8));
Response.AppendHeader("Content-Length", DownloadFile.Length.ToString());
Response.WriteFile(DownloadFile.FullName);
File.Delete(fileName.ToString());
Response.Flush();
Response.End();
}
}
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|