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

后端 未结 7 2094
萌比男神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

      @using (Html.BeginForm("Action_Name", "Controller_Name",FormMethod.Post))
       {
            @Html.TextBoxFor(m => m.Email, new {@class = "text_field"})
            @Html.ValidationMessageFor(m => m.Email)
       }
    

提交回复
热议问题