17Mar/096
ASP.NET MVC tip – Don’t use the Content or Scripts directories for view specific files
ASP.NET MVC creates a default file structure for you when you create a new project. It includes a Scripts directory, which contains the MS AJAX and jQuery .js files, and a content directory, which contains a Master page and CSS files. I find this to be extremely cumbersome and it forces me to jump around a lot. Storing shared CSS and JavaScript files in those locations is fine in my opinion. But if you are using View specific CSS or JavaScript files, you should put them alongside your view page in the Views directory. This allows you to quickly find the file you want to work on.
-
http://patrick.veverka.net Patrick Veverka
-
Glyn Darkin
-
zihotki
-
zihotki
-
http://derek-morrison.com Derek Morrison


