1

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.

Sutirth
  • 1,217
  • 4
  • 15
  • 26

1 Answers1

2

@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.

Community
  • 1
  • 1
Brandon
  • 68,708
  • 30
  • 194
  • 223