ASP.NET add a httphandler to edit downloaded file name

前端 未结 3 1702
野趣味
野趣味 2021-01-12 20:46

I have in my project a page DownloadDocument.aspx and it\'s codebhind is DownloadDocument.aspx.cs

In my DownloadDocument.aspx

3条回答
  •  甜味超标
    2021-01-12 21:44

    it depends on type of file you are trying to download...because every request is gone through HTTPHandler's ProcessRequest. and it's checks each and every request one by one.. You need to add any HTTPHandler to your project and need to add something like this in your web.config.

     
      
    
    

    This will check your request for every Image type.. mentioned in path attribute

    Edit :

    
    

提交回复
热议问题