Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
Event registration app with QR/Paypal
Home
▼
Monday, April 1, 2013
How to use TextArea for @Html.EditorFor in ASP.NET MVC?
Two ways:
1. Add data annotation in Model class
[DataType(DataType.MultilineText)]
public string Text { get; set; }
2. @Html.TextAreaFor(model => model.Text)
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment