Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

mvc input type file

@using (Html.BeginForm("Action", "Controller", FormMethod.Post, new 
                                       { enctype = "multipart/form-data" }))
{
    @Html.TextBoxFor(m => m.File, new { type = "file" })
    @Html.ValidationMessageFor(m => m.File)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mvc #input #type #file
ADD COMMENT
Topic
Name
4+9 =