2009-11-10 6 views
2

J'ai commencé à jouer avec Spark dans un projet ASP.NET MVC. Cependant, j'ai un projet ASP.NET existant que je ne peux pas transférer vers ASP.NET MVC, et je me demandais s'il y avait un moyen d'utiliser Spark avec ASP.NET?Spark et ASP.NET

Répondre

2

Oui, Spark View Engine est génial. Et quand vous l'avez essayé, il n'y a pas de retour possible. Spark nécessite ASP.NET MVC ou Castle Monorail, donc je suppose que le mélange de MVC et WebForms serait la seule façon de commencer à utiliser Spark dans un projet WebForms. Commencez par combiner WebForms et MVC (avec Spark) dans le même projet. Puis commencez à migrer .aspx/code-behind dans .spark/controls, fichier par fichier. Rappelez-vous, ce refactoring peut être très coûteux/chronophage dans un grand projet.

Plugging ASP.NET MVC into an existing ASP.NET application