Select from following answers:- @Html.BeginForm("ActionName","ControllerName");
- @Html.BeginForm("ActionName","ControllerName",FormMethod.Post,new{id="Form1",Name="Form1",enctype="multipart/form-data"});

- @Html.BeginForm("ActionName","ControllerName",FormMethod.Get,new{id="Form1",Name="Form1",enctype="multipart/form-data"});
- @Html.BeginForm("ActionName","ControllerName",enctype="multipart/form-data");
- All Above
We have to add enctype="multipart/form=data" on our Forms that include file uploads because the File will not be posted in Multiple parts..
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator