Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Width for the textarea
Message
 
 
À
28/08/2012 20:27:23
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01551751
Message ID:
01551774
Vues:
60
>Is the textbox in a table column?
>
>>I fixed the error, so it works, but the appearance didn't change.

No, this is the whole partial view
@model Socrates.Objects.Course

 <div class="editor-label">
            @Html.LabelFor(model => model.Number)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Number)
            @Html.ValidationMessageFor(model => model.Number)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description,new{@class = "textareaDesc"})
            @Html.ValidationMessageFor(model => model.Description)
        </div>
But all controls seem to have the same width.

Actually, last edit box is smaller than textboxes. And all of the controls are abour 1/3 of the form's width.

Also, I think I figured this out - since they all use special editor classes, I think I need to see definitions of these classes in css.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform