开发者

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

Somebody knows the answe开发者_JAVA技巧r? I'm using L2S with field ntext in my db


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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜