如果我这样做:
@Html.TextAreaFor(Function(m) m.html, New With {.id = "myTextArea", .name = "myTextArea", .style = "width: 100%; height: 100%"})我得到的结果是:
<textarea cols="20" id="myTextArea" name="html" rows="2" style="width: 100%; height: 100%"></textarea>但是如何将"name“设置为"myTextAre”而不是"html“呢?
谢谢大家!
魔力
发布于 2011-02-02 01:55:07
不要紧--我发现我应该用@Html.TextArea代替。:)
https://stackoverflow.com/questions/4865937
复制相似问题