• 文件下载


     string Path = Request.PhysicalApplicationPath + "App_Data" + "\\" + "aaa.mdb";
            FileInfo info 
    = new FileInfo( Path );
            
    if( info.Exists )
            
    {
                Response.Clear();
                Response.ClearHeaders();
                Response.Buffer 
    = false;
                Response.ContentType 
    = "Application/octet-stream";           
                Response.AddHeader( 
    "Content-Disposition""attachment;filename=" + HttpUtility.UrlEncode( info.FullName, Encoding.UTF8 ) );
                Response.WriteFile( info.FullName );
                Response.Flush();
                Response.End();
            }
  • 相关阅读:
    kill process
    USB development guide
    MMC device
    memtester
    printf()格式化输出详解
    C语言动态内存分配
    归并排序C语言
    c 文件操作
    数据包分析
    C语言文件操作函数大全
  • 原文地址:https://www.cnblogs.com/Magicam/p/1241147.html
Copyright © 2020-2023  润新知