Reputation: 1267
Whenever u create a View for new create thread or edit thread what u get is a text box. I need a Text area to be displayed for writing how should i go about it.
Upvotes: 1
Views: 480
Reputation: 69993
@Html.TextArea
or @Html.TextAreaFor
Same as the other HTML helpers.
You can also add the following annotation to your model
[DataType(DataType.MultilineText)]
When you call EditorFor
you'll get a textarea rather than a textbox.
If you're talking about actually changing the scaffolding template, you need to create your own template.
Upvotes: 2