asp.net MVC

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

How to add cols and rows property to a multiline Editor-For in asp.net MVC?, someone asked me to explain?

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" })

 

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

 

 

Post your comments / questions