Getting post values of dynamically generated content
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?
In your controller, access the form values directly:
var value = Request.Form["inputNameHere"];
精彩评论