How to set the width of the text box when using Html.TextBoxFor

后端 未结 6 1279
走了就别回头了
走了就别回头了 2021-02-01 02:20

I have the following line in my view:

<%= Html.TextBoxFor(m => m.Description)%>
6条回答
  •  暖寄归人
    2021-02-01 03:07

    Just use the properties like "TextBoxFor,TextArea" etc instead of "EditorFor"... Lot of people when use scaffolding, they have to change the fields by themselves or data annotations for in model like [DataType(Multiline)]

提交回复
热议问题