How to create MVC 4 @Html.TextBox type=“file”?

后端 未结 7 2096
萌比男神i
萌比男神i 2021-02-20 14:57

I need to add the following field at my form


I create model and describe this field (the las

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-20 15:06

    You can use the below syntax

    @Html.TextBoxFor(model=>model.Email, new { @type="file", @class="input-file" })
    

提交回复
热议问题