Displaying ad content from Respose.WriteFile()/ Response.ContentType

前端 未结 4 2194
抹茶落季
抹茶落季 2021-02-18 21:48

How would one display any add content from a \"dynamic\" aspx page? Currently I am working on using the System.Web.HttpResponse \"Page.Response\" to write a file that is stored

4条回答
  •  忘了有多久
    2021-02-18 22:16

    Since .Net 4.5 one can use

    MimeMapping.GetMimeMapping
    

    It returns the MIME mapping for the specified file name.

    https://docs.microsoft.com/en-us/dotnet/api/system.web.mimemapping.getmimemapping

提交回复
热议问题