Today on Sitefinity version 7, there still isn’t a way of adding scripts and styles to MVC widgets, so I have come up with a workaround to do this… better late than never. I consider it a hack because this only works in hybrid mode and assumes the page is a Web Form. I created this as an HTML helper for MVC and can now do this on your views.
If you are like any other coder, cutting and pasting snippets should put up a red flag in your mind. You will quickly hit this threshold when creating CRUD-services for MVC 4 applications over and over again. This lead me to create a repository pattern using generic types and base controller classes that I would like to share with you.
Did you know in Razor markup can auto-resolve paths? Take a look at this gem built into MVC 4.
The mobile revolution has created a plethora of new platforms and languages. It
is rare to see old technologies successfully reaching new grounds together. A good
example of this is .NET MVC and jQueryMobile. The blends of Razor, HTML, CSS, and jQuery make mobile a very familiar territory, a package that makes things quick, easy, and beautiful!