我为 XForms 创建了一个区域,当我尝试返回 view("index.xhtml") 时,框架将视图解析为 index.xhtml.aspx 或 index.xhtml.cshtml。
我试过 routes.IgnoreRoute("{resource}.*xhtml/{*pathinfo}"); 在 global.asax 中。
要么我不确定要使用哪个 URL(我是仍然点击控制器还是直接访问视图文件夹中的 .xhtml 文件?)或者我在 ignoreroute 中犯了一个错误。
任何帮助表示赞赏。