I am developing a web application using MVC 4.0 and C#. I am stuck with a problem, so looking for community help.
Problem Description:
I have a Model Attribute
Example of Property in Attribute
Name, DislayName, Value, IsOptional, HtmlFieldType
You can say these are Attributes of Person Assets, so Model called PersonAsset will have
List
So I will have list of attributes fields
@foreach(Attribute attr in Model.ListOfAttributes)
{
@Html.TextBoxFor(attr=>attr.value)
@Html.CheckBoxFor(attr=>attr.IsOptional)
}
When I edit textbox value or checkbox value what Is the option I will to update my Model using entered value. Postback is one of the option, but when we have large model, I dont think it will be good option to postback whole module.
using Javascript, we will totally loose unit testable code, but can adopt this, if we have minimum java script involvement.
Please suggest.
Thanks

Jaganathan BantheswaranPosted Oct 26, 2013, 9:40 AM
You can go for complete Actions in Javascript. I.e. Handle all the view actions using javascript like inserting/updating... data using ajax calls. So that it easy to do Unit Test & there wont be much code/overhead in Controllers.
Or
You can do it with your way that however you are doing now.
sourav mondal 0Posted Oct 25, 2013, 1:54 PM
http://dotnetawesome.blogspot.com/2013/09/how-to-update-multiple-row-at-once.html