【问题标题】:MVCContrib XmlResult not workingMVCContrib XmlResult 不工作
【发布时间】:2011-09-16 12:42:54
【问题描述】:

我有当前的控制器代码:

    public ActionResult BodyDay(int id, int year)
    {
        var repo = new Repo();
        return new  XmlResult(repo.getBodyDay(id, year));
    }

它曾经返回xml,现在我返回的只是

    MvcContrib.ActionResults.XmlResult

【问题讨论】:

    标签: asp.net-mvc-3 mvccontrib


    【解决方案1】:

    我只是主要使用了来自这个问题的 MVCContrib 源的原始代码,所以我可以调试它

    Return XML from a controller's action in as an ActionResult?

    它就像做梦一样,所以我继续下一个问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-10
      • 1970-01-01
      • 2010-10-10
      • 1970-01-01
      • 1970-01-01
      • 2011-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多