ASP.NET MVC - Routing - an action with file extension

后端 未结 3 1434
野的像风
野的像风 2020-11-30 07:17

is there a way to achieve calling URL http://mywebsite/myarea/mycontroller/myaction.xml This would basically \"fake\" requesting a file but the result would be

3条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 07:55

    If you drop your xml file in one of the folders inside your website. Try something like this: C# - How to make a HTTP call

提交回复
热议问题