Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开始在 ASP.NET MVC 项目中使用 Spark。但是,我有一个无法移植到 ASP.NET MVC 的现有 ASP.NET 项目,并且想知道是否有办法将 Spark 与 ASP.NET 一起使用?
是的,Spark View Engine 很棒。而且,当您尝试过时,就没有回头路了。
Spark 需要 ASP.NET MVC 或 Castle Monorail,所以我猜混合 MVC 和 WebForms 将是在 WebForms 项目中开始使用 Spark 的唯一方法。首先在同一个项目中结合 WebForms 和 MVC(与 Spark)。然后开始将 .aspx/code-behind 逐个文件迁移到 .spark/controls 中。
请记住,在大型项目中,这种重构可能非常昂贵/耗时。
将 ASP.NET MVC 插入现有的 ASP.NET 应用程序