Note that there are some explanatory texts on larger screens.

plurals
  1. POHtml.TextAreaFor in asp.net mvc 2 rendering wrong!
    text
    copied!<p>I am developing an asp.net mvc 2 application and am using a <em>Html.TextAreaFor</em> to display a textarea where the user can enter a text which is then stored and sent if needed.</p> <p>The view which displays this functionality is strongly typed (typeof(Message)). The message has a sender, reciver, subject and message body. The code in the view looks like this <code> &lt;% using (Html.BeginForm()) {%&gt; &lt;%: Html.ValidationSummary(true) %&gt; &lt;fieldset style="height:100%"&gt; &lt;legend&gt;E-mail&lt;/legend&gt; &lt;div class="editor-label"&gt; &lt;%: Html.LabelFor(model =&gt; model.To) %&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;%: Html.TextBoxFor(model =&gt; model.To) %&gt; &lt;%: Html.ValidationMessageFor(model =&gt; model.To) %&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;%: Html.LabelFor(model =&gt; model.From) %&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;%: Html.TextBoxFor(model =&gt; model.From) %&gt; &lt;%: Html.ValidationMessageFor(model =&gt; model.From) %&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;%: Html.LabelFor(model =&gt; model.Subject) %&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;%: Html.TextBoxFor(model =&gt; model.Subject) %&gt; &lt;%: Html.ValidationMessageFor(model =&gt; model.Subject) %&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;%: Html.LabelFor(model =&gt; model.Message) %&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;%: Html.TextAreaFor(model =&gt; model.Message) %&gt; &lt;%: Html.ValidationMessageFor(model =&gt; model.Message) %&gt; &lt;/div&gt; &lt;p&gt; &lt;input type="submit" value="SaveMail" /&gt; &lt;/p&gt; &lt;/fieldset&gt; &lt;% } %&gt; </code></p> <p>when i open this page in the browser then the submit button is placed over the textarea and i cant get it to render right...anybody help?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload