1) when editing a view using the line:
@Html.TextArea(name: "Message", rows: 10, columns: 40)
I get this error at compile time:
ERR: "The best overload for 'TextArea' does not have a parameter of type 'rows'"
even if there is a signature with rows and columns as parameters.
2) So I try with the signature: @ Html.TextArea (string name, htmlAttributes object)
calls the function as follows
@Html.TextArea(name: "Message", new { rows=10, columns=40 }
but I get another error:
ERR: "Named Argument Specifications must appear after all fixed arguments have been specified"
Does anyone know why and how to solve them?
Thank you in advance!
Zeta
source share