So, to return the value to the controller, you need to first issue POST , so you need to configure your controller to POST :
[HttpPost] public ActionResult SendEmails(string EmailList) { }
Also note that I added the EmailList parameter, which is named exactly the same as the control on the form. Then we need to make sure that your HTML is configured correctly, so when you create the form control, follow these steps:
@Html.BeginForm("SendEmails", "{ControllerNameHere}", FormMethod.Post)
and then your text box, leave it alone, it should work fine.
Mike perrenoud
source share