Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Width for the textarea
Message
 
 
To
28/08/2012 20:27:23
General information
Forum:
ASP.NET
Category:
MVC
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01551751
Message ID:
01551774
Views:
65
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform