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?

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

+1: So far with the sketchiest of info in the question this is a reasonable answer.

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.