Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get textarea for Html.EditorForModel() method in asp.net mvc 2

Somebody knows the answer? I'm using L2S with field ntext in my db

like image 738
Sasha Avatar asked Jan 30 '10 17:01

Sasha


1 Answers

In your model, you need to specify the a DataType.MultilineText annotation:

[DataType(DataType.MultilineText)]
public string MyProperty;
like image 184
Nick Craver Avatar answered Oct 07 '22 03:10

Nick Craver