Skip to content

14 TextArea and Resize Handle

M. Fares edited this page Mar 15, 2018 · 3 revisions

To change a textbox to a textarea, your need to include the annotation [DataType(DataType.MultilineText)] with the property in view model.

Example: File: /ViewModels/CourseViewModel.cs Property: Description

Example of generated code (use Inspect tool to see the textarea tag): File: /Views/Course/Create.cshtml Property: Description

Note: The textarea resize handle is supported in Chrome and Firefox. It is not supported IE and Edge, your need to use JQuery plugin.

Clone this wiki locally