62,241
社区成员




<%= Html.EditorFor(model => model.Content, new { width="200px",height="150px"})%>
public static MvcHtmlString EditorFor<TModel, TValue>(
this HtmlHelper<TModel> html,
Expression<Func<TModel, TValue>> expression,
Object additionalViewData
)
传送门:http://msdn.microsoft.com/en-us/library/ff406462.aspx
public static MvcHtmlString EditorFor<TModel, TValue>(
this HtmlHelper<TModel> html,
Expression<Func<TModel, TValue>> expression,
string templateName
)
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<textarea style="width:200px" rows="5">
<%=Model %>
</textarea>
<%=Html.EditorFor(m=>m.CompanyName,"area") %>
<%=Html.TextAreaFor(Model => Model.PrjFundsInfo, new { rows = "8", style = "width:99%" })%>