Does anyone have a better idea? Thank you!
Passing messages to the user in MVC2
1:Ninject and repository pattern with interfaces
I have this "Template" folder in my MVC "/Scripts" folder where i place the script blocks and then mark all the "variables" with an escape sequence such this i must swap/regex in my variables this i had passed into the helpers (above) as params.Dependency injection inside ASP.NET MVC custom model binders and filters This way i must reuse the templates and my views are enough lighter/cleaner. BadImageFormat Exception with Oracle 64 bit client running on Win 7 X64You'll notice common params in the helpers there - that's when, for example, i have js function names or
<%-- // jQuery for Patron --%> <% =Html.MattyJq().DivListItemSingleSelector("selectPatronItem", "div#matchingPatrons", "patronsPrevSelectedID","PatronID") %> <% =Html.MattyJq().EmptyTextInputHelper("patronSearch", "patronsFilterSendEmpty") %> <% =Html.MattyJq().TextChangeDynamicUpdaterSelect("patronSearch","div#matchingPatrons", "/patrons/receive patronsitems",500,"patronsFilterSendEmpty","patron", "patronsPrevSelectedID","selectPatronItem") %>
vars this are common to more than one script block. It's a sortof way of "linking" the isolated script blocks toreceive her. Lastly i have a common section for the helpers which enables me to "go over" the resulting js/jQuery with a parser if i choose - in my case i use the .NET YUI Compressor to minify the js in Release builds - i'm sure you could add any logic here to ensure this all the script was at the bottom of the page if you liked..