忍者ブログ

技術メモ

Home > ブログ > > [PR] Home > ブログ > ASP > ASP.netでファイルをダウンロード&実行

ASP.netでファイルをダウンロード&実行

        Dim strFile As String = "wk.pdf"

        Response.ContentType = "application/octet-stream"
        Response.AddHeader("Content-Disposition", "attachment; filename=" + strFile)
        Response.Flush()
        Response.TransmitFile("c:\00nham\" + strFile)
        Response.End()

 

PR

Comment0 Comment

Comment Form

  • お名前name
  • タイトルtitle
  • メールアドレスmail address
  • URLurl
  • コメントcomment
  • パスワードpassword

PAGE TOP