MVC TextArea - Stack Overflow PDF
MVC TextArea - Stack Overflow PDF
asp.net-mvc
3
asked Dec 17 '10 at 9:46
yogee
1,240 4 23 44
4 Answers
Try this:
34 <%=Html.TextAreaFor(
m => m.Descrip
new RouteValue
Edit:
This wont work as far
as I know
<%=Html.TextAreaFor(m
because of this:
// ...
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
public static str
https://stackoverflow.com/questions/4469277/asp-net-mvc-textarea 1/4
29/5/2019 Asp.net MVC TextArea - Stack Overflow
this H
IDicti
Dictionary
object>();
implicitAt
TextAreaRows.ToString
implicitAt
TextAreaColumns.ToStri
return Tex
value */, implicitAttr
[DataType(DataType.Mul
public string Comments
View:
@Html.EditorFor(model
<%= Html.TextAreaFor(x
or:
<%= Html.TextAreaFor(x
Pitfall is
@Html.TextAreaFor
1 because it has no
overload which allow
you assigning a Model
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Value.
Terms of Service.
https://stackoverflow.com/questions/4469277/asp-net-mvc-textarea 3/4
29/5/2019 Asp.net MVC TextArea - Stack Overflow
Example 1 :
@Html.TextAreaFor(m =
control",@value="Tft.W
Solution :
use @Html.TextArea
instead
Example 2:
@Html.TextArea("Langua
40, new { @class = "fo
Advice :
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
https://stackoverflow.com/questions/4469277/asp-net-mvc-textarea 4/4