Here is my code.
@using (Html.BeginForm()) { @Html.ValidationSummary() <fieldset> <legend>Registration Form</legend> <ol> <li> @Html.LabelFor(m => m.FirstName) @Html.TextBoxFor(m => m.FirstName) </li> </ol> </fieldset> }
From the above code, the label and text box are on separate lines. I want to combine them in one line so that I have something like ...
@Html.LablFor(m => m.FirstName): @Html.TextBoxFor(m => m.FirstName)
It should turn out like FirstName: _______
Thanks in advance.
asp.net-mvc razor html-helper
Shane LeBlanc
source share