How to change returned ContentType in ASP.NET MVC controller (ActionResult)

前端 未结 4 833
半阙折子戏
半阙折子戏 2021-01-03 21:13

I have ASP.NET MVC controller named dictionary with method ControlsLangJsFile. Method returns view of users control (ASCX) which contain JavaScript variables.

When

4条回答
  •  借酒劲吻你
    2021-01-03 21:52

    Like this, just change the content type accordingly:

    ASP.NET MVC and text/xml content type

提交回复
热议问题