dynamic grid style form that lets you update multiple rows in a single post in asp.net mvc
Posted
by Charlie Bear
on Stack Overflow
See other posts from Stack Overflow
or by Charlie Bear
Published on 2010-04-09T09:18:39Z
Indexed on
2010/04/09
9:23 UTC
Read the original article
Hit count: 296
asp.net-mvc
I'm starting out with MVC but not sure it's the best option.
I need to create a form that is based upon a collection. Eg it might look like this:
product Price Item 1 [textbox] Item 2 [textbox]
[submit button]
where "item" is pulled from the database and textbox allows users to update the price.
essentially this is a type of datagrid but i don't want webforms style update each row one at a time i need to update the entire set of text boxes in one post.
Ideally I don't want a javascript based solution as it has to work without javascript.
Is this possible in MVC or should I stick to webforms (where I could do this in a repeater by iterating through he repeater items on postback)
© Stack Overflow or respective owner