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 Answer 1

1

In your controller, access the form values directly:

var value = Request.Form["inputNameHere"];
Sign up to request clarification or add additional context in comments.

1 Comment

That, or have action method with parameter of type FormCollection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.