Reputation: 2392
I am dispalying some long text in the @Html.TextBoxFor. The text contains linefeed, carriage returns etc but @Html.TextBoxFor does not seem to respect those. Any ideas what i may be missing?
Upvotes: 3
Views: 480
Reputation: 16032
A Textbox is single line per definition.
You have to use a TextArea:
@Html.TextAreaFor( ...
Upvotes: 6