Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too narrow controls
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Titre:
Too narrow controls
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01552037
Message ID:
01552037
Vues:
59
Hi everybody,

Last 3 days I've been working on a test project to learn MVC 3.

Here is one of the views generated and I am wondering why the controls are so narrow and how should I make them wider.

I assume the width is coming from Site.css?

Say, I just tried
<div class="editor-field">
            @Html.DropDownList("clientId", new SelectList(Model.Clients, "Id", "Name"), new {width="500px"})

            @Html.ValidationMessageFor(model => model.Engagement.Client)
        </div>
but I see no effect at all.

See attached file.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform