How to get textarea for the Html.EditorForModel () method in asp.net mvc 2

Does anyone know the answer? I am using L2S ​​with ntext field in my db

+5
source share
1 answer

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

[DataType(DataType.MultilineText)]
public string MyProperty;
+12
source

All Articles