Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
@Html.LabelWithInput(...)
public static HtmlTag LabelWithInput<T>(this HtmlHelper<T> helper, Expression<Func<T, object>> expression) where T : class
{
var generator = GetGenerator<T>();
var label = generator.LabelFor(expression, model: helper.ViewData.Model);
var input = generator.InputFor(expression, model: helper.ViewData.Model);
var div = new DivTag();
div.AddClass("form-group");
div.Append(label);
div.Append(input);
return div;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.