0

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?

AnthonyWJones
  • 187,081
  • 35
  • 232
  • 306
Stefan Filip
  • 1,791
  • 3
  • 15
  • 25

1 Answers1

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