views:

17

answers:

1

I have a form generator essentially, what I want to do is take the forms list of questions, dynamically generate them on the page, then retrieve the answers. Generating the questions is easy, but how do I retrieve those answers? I don't see how I can strongly type the view, but is there a way to manually grab the post values if I know the name of the input fields?

+1  A: 

In your controller, access the form values directly:

var value = Request.Form["inputNameHere"];
John Sheehan
That, or have action method with parameter of type `FormCollection`.
Necros