I am building an application using ASP.net MVC 3 and I wonder if anyone knows a great library for filling in the blanks of the built-in field helpers of the html form?
eg. creating a text field is very simple:
@Html.EditorFor(model => model.TextboxTest)
But to create a drop-down list I have to write:
@Html.DropDownListFor(model => model.DropdownTest, Model.DropdownTestData)
And it should be written as
@Html.EditorFor(model => model.DropdownTest)
where DropdownTest is a SelectList.
Here is an example of a solution that can be found here .
The same applies to the list of radio objects: it is not included in MVC (at the moment). There is another good solution that can be found here , and with this solution I could write
@Html.RadioButtonListFor(model=>model.Item,Model.ItemList)
So there are accessible solutions, but not structured in the library (accordingly, I did not find them), and I donβt want to copy and paste these solutions together in parts (because I cannot easily update it using NuGet, for example), the whole library will be better, but I could not find her.
Please, help:)
source share