KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm currently wetting my feet with ASP.NET MVC 3 w/ Razor, and I'm a bit confused about the most appropriate way to render HTML input elements. As I see it, there are 3 methods to render those elements for a Model's property: Using the HtmlHelper EditorFor method Using Html.TextBox method (for string or numeric values) Using plain-old html input element, and using inline Razor tags to put the value in the element. What is the recommended method for doing that? I'm a bit concerned with the EditorFor method, since I don't have any control over the rendered HTML, and I thought one of the mail goals of the MVC framework was to avoid the over-abstraction of WebForms. What do you think? What is the best practice for this? Thanks!
Tags (comma-separated)
Save Edits
Cancel