Open any file from asp.net

前端 未结 2 1305
旧巷少年郎
旧巷少年郎 2021-01-19 23:11

How can I open any file, specified by a path, in ASP.NET programatically?

I tried the snippet below but it reads the contents of the file instead of opening the file

2条回答
  •  一个人的身影
    2021-01-19 23:51

    If you want the file to be opened on the client side,Create an HTTP Handler and set the appropriate mime type on your response before streaming it out from your handler.

    for more information I ask question near to your one before.

    how to open file with its application

提交回复
热议问题