I want to generate a couple of checkboxes on an ASP .NET MVC page. How can I retrieve their data in a controller after posting the page?
Asked
Active
Viewed 1,526 times
1 Answers
2
Use the Request.Form
collection:
Request.Form["control-id"]
or declare a FormsCollection
parameter in your action method and use it to retrieve the value.

Mehrdad Afshari
- 414,610
- 91
- 852
- 789
-
+1: So far with the sketchiest of info in the question this is a reasonable answer. – AnthonyWJones Mar 19 '09 at 09:49