c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
asp.net MVC

How to add cols and rows property to a multiline Editor-For in asp.net MVC?

| | ASP-NET , Html , MVC

In this article, I will show you how to add cols and rows for the multiline Editor-For (textarea) in MVC. For input textarea you can set simple. It also seems like that, for mvc use TextAreaFor and specify attributes cols and rows like following way,

 

  @Html.TextAreaFor(model=> model.Address, new { @cols = "40",, @rows = "4" })