Sasha
Sasha

Reputation: 20834

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

Upvotes: 6

Views: 1194

Answers (1)

Nick Craver
Nick Craver

Reputation: 630469

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

[DataType(DataType.MultilineText)]
public string MyProperty;

Upvotes: 13

Related Questions