I have read through Scott Hanselman\'s post on this topic. I found another article that seems to be a simpler approach. The second of which I decided to try.
I have an editor template开发者_运维技巧 for a custom object.Pretty basic - just has a bunch of strings and dates:
I want to include certain .js and .css files only on pa开发者_JAVA技巧ges that need them. For example, my EditorTemplate DateTime.ascx needs files anytimec.js and anytimec.css.
I\'m using an EditorTemplate DateTime.ascx in my ASP.NET MVC 2 project. <%@ Control Language=\"C#\" Inherits=\"System.Web.Mvc.ViewUserControl<DateTime>\" %>
How do I properly register javascript blocks in an ASP.NET MVC 2 (RTM) Editor template? The specific scenario I\'m in is that I want to use Dynarch JSCal2 DateTimePicker for my standard datetime pick
Just wondering how and when people are using Editor/Display Templates vs. Html Helpers. Specifically I am talking about its use in rendering different UI control rather than rendering entities.
I have a model: public class MyListModel { public int ID {get;set;} public List<User> Users{get;set;}