I would like to post between 55 and 100 items which could be false or true from view to my controller without using Model. This is my code in Razor View:
@using(Html.BeginForm("User","User",FormMethod.Post,new{enctype="multipart/form-data"}))
{
<input type="radio" name="answer1">Choice one</input>
<input type="radio" name="answer1">Choice two</input>
<input type="radio" name="answer2">Choice three</input>
<input type="radio" name="answer2">Choice four</input>
....
<input type="radio" name="answer55">Choice fifty five</input>
<input type="radio" name="answer55">Choice fifty six</input>
<button type="submit">Send</button>
}
Controller:
[HttpPost]
public async Task<ActionResult> User(Array....)
{
return view();}
How can I send all of parameters (radio buttons) using an array to my controller. I appreciate all your solutions.
value