Retrieving postback from Dynamically created controls in MVC without using FormCollection

Posted by splatto on Stack Overflow See other posts from Stack Overflow or by splatto
Published on 2010-06-03T18:48:00Z Indexed on 2010/06/03 18:54 UTC
Read the original article Hit count: 297

Filed under:
|
|
|
|

I'm passing a List to an MVC view and generating checkboxes for each object in the list (The checkboxes are named t.Name).

I'd like to be able to tell which checkboxes were checked once the form is posted. However, I'd like to avoid using the FormCollection object. Is there any way to do this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET