Top "Editorfor" questions

when passing a collection to EditorFor(), it generates invalid names for input elements

I have a BookCreateModel which consists of book's plane info such as Title, PublishYear & etc plus a collection of …

asp.net-mvc asp.net-mvc-3 razor model-binding editorfor
How can I get value of editorfor and assign this value to another editorfor?

I want to get value of my projectName but Alert result always is : Value: function(value){ return access(this, function(…

jquery asp.net-mvc model-view-controller editorfor
Trouble getting DropDownListFor to work on EditorFor in MVC3

I've got a pretty simple problem that has a solution I'm not able to find. Given the following model: public …

asp.net-mvc asp.net-mvc-3 razor editorfor html.dropdownlistfor
HTML.EditorFor with 3 decimal places

How to display the model decimal field with 3 decimal places. Currently it shortens it to 2 digits. 1,237 currently will be displayed …

c# asp.net-mvc editorfor
Passing a Collection to EditorFor in ASP.NET MVC

I have a lengthy form which I have broken to several parts and am using @Html.EditorFor for each section …

asp.net asp.net-mvc razor editorfor
unable to apply Bootstrap classes to my EditorFor

I am working on an asp.net mvc-5 web application , and i wrote the following :- @Html.EditorFor(model => …

twitter-bootstrap razor asp.net-mvc-5 html-helper editorfor
Radiobuttons instead of dropdownlist in mvc 3 application?

I have a View where the model has a collection of items. Then I have an EditorFor template that takes …

asp.net asp.net-mvc-3 drop-down-menu radio-button editorfor
@Html.EditorFor() Renders DropDownList Instead of CheckBox

I'm new from WebForms to MVC 3 and have an issue with the @Html.EditorFor() helper method. I have a strongly …

asp.net-mvc asp.net-mvc-3 razor editorfor
How to change MVC 5 @Html.EditorFor width

I am designing an edit form using MVC 5 Razor. I want the input controls to fill the whole blank width …

css asp.net-mvc-5 editorfor
html attributes for editorfor

How can I add html attributes such as maxlength, style, css and ... to Html.EditorFor()?

asp.net-mvc-3 editorfor