Answers for ".net form binding why cant i skip index"

C#
0

.net form binding why cant i skip index

<input type="hidden" name="Items.Index" value="0" />
<input type="text" name="Items[0].Name" value="someValue1" />

<input type="hidden" name="Items.Index" value="1" />
<input type="text" name="Items[1].Name" value="someValue2" />

<input type="hidden" name="Items.Index" value="3" />
<input type="text" name="Items[3].Name" value="someValue3" />

<input type="hidden" name="Items.Index" value="4" />
<input type="text" name="Items[4].Name" value="someValue4" />
Posted by: Guest on July-12-2020

Code answers related to ".net form binding why cant i skip index"

C# Answers by Framework

Browse Popular Code Answers by Language