Multiline TextBox/Input Field In ASP.NET Core MVC : <p>To make multi line input field, Like ASP.NET MVC I have tried the following but didn't work in ASP.NET Core MVC:</p>

<pre><code>public class Post
{
   [DataType(DataType.MultilineText)]
   public string Body { get; set; }
}
</code></pre>

<p>In the view:</p>

<pre><code>&lt;input asp-for="Body"  rows="40" class="form-control"/&gt;
</code></pre>

<p><strong>Any Suggestion will be highly appreciated!!</strong></p>
