How can I get a reference to an HttpResponse in ASP.NET MVC?

后端 未结 3 1560
后悔当初
后悔当初 2021-02-03 22:40

I\'m calling a third-party library that takes a System.Web.HttpResponse. I see I have a HttpResponseBase, but not HttpResponse like in web

3条回答
  •  遥遥无期
    2021-02-03 23:22

    In mvc application you can use HttpContext.ApplicationInstance.Response.This helped me for getting the HttpResponse in MVC Application.

提交回复
热议问题