我需要更改文本框的大小:
@Html.SimpleTextBoxFor(m => ((ModifiableProperty<string>)m).Value.TheCurrentValue, new { id = fieldId})
Run Code Online (Sandbox Code Playgroud)
我试过这个
@Html.SimpleTextBoxFor(m => ((ModifiableProperty<string>)m).Value.TheCurrentValue, new { id = fieldId, @maxlength = "100" })
Run Code Online (Sandbox Code Playgroud)
但不起作用.