MVC 2 – Template Helpers
- Posted: Jan 21, 2010 at 1:06 AM
- 6,568 Views
Right click “Save as…”
af Daniel Frost
Template helpers giver mulighed for automatisk at oprette UI på basis af en datamodel, der er markeret med attributter, som er defineret under namespacet System.ComponentModel.DataAnnotations. For eksempel kan en egenskab i datamodellen markeres med attributten DataTypeAttribute til at angive, at egenskaben repræsenterer en dato. En template helper kan derefter automatisk gengive værdien af egenskaben som en dato ved hjælp af f.eks en partial user control.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?