I am trying to use the EditorFor template with a dynamic view
my view looks like
@model dynamic
.....
.....
<div class="form-group">
@Html.LabelFor(x => x.AddressLine1, new { @class = "control-label" })
<div class="input-field">
@Html.TextBoxFor(x => x.AddressLine1, new { @class = "form-control" })
<div class="help-block with-errors">
@Html.ValidationMessageFor(x => x.AddressLine1)
</div>
</div>
</div>
But I am running into the error
CS1963 An expression tree may not contain a dynamic operation
Is it possible to use editorfor templates with dynamic views ? If so how could I get this to work
thanks