how to pass data from view to controller in mvc on button click?
In order for the data to be submitted to the controller, the inputs must appear within the <form> tag. inside the @using (Html. BeginForm("FindPerson", "MyController", FormMethod. Post)) you should put your inputs.