我想要一个标签和一个文本框并排,但我没有做我想做的事。我怎样才能做到这一点?
ViewContext.Writer.Write(
"<div class=\"edit_form\">" +
"<div class=\"line\">"
);
Html.DevExpress().Label(label =>
{
label.Text = "Action";
label.ControlStyle.CssClass = "label";
label.AssociatedControlName = "Action";
}).Render();
Html.DevExpress().TextBox(textBox =>
{
textBox.Name = "Action";
textBox.Width = Unit.Percentage(30);
textBox.ControlStyle.CssClass = "editor";
}).Bind(DataBinder.Eval(test, "Action")).Render();
ViewContext.Writer.Write(
"</div>"+
"</div>"
);