Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Width for the textarea
Message
De
28/08/2012 23:24:29
 
 
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:
01551778
Vues:
63
This message has been marked as a message which has helped to the initial question of the thread.
You need to look at the class for the div. Also look at the generated html. That often points you to where the problem is.

>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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform