Friday, November 20, 2009

Cannot place .js files in Themes folder in ASP.NET MVC

Yes! I have been struggling with this for couple of days and it is a problem. The MVC engine only parses .css files from the Themes folder. So if you are used to put .js files in your Themes folder (a habit of ASP.NET designers), well you have to think twice here. Whether you absultely need .js files in the Themes folder ? Otherwise dont put them and expect the framework to automatically dump them to the response. You have to explicitly put a script references in the Master page.

Cheers!
/Bumble Bee.

No comments: