Instead of have "disabled="true"" hardcoded in the TextBoxFor element, I want it pulled from the Model. The model property (Model.InvoicedApprovedBy) would be set to "" (enabled) or "disabled="disabled" (disabled)
<%= Html.TextBoxFor(m => m.WorkingModel.Detail.ApprovedBy, new { id = "InvoiceApprovedBy", disabled="true", style = "width: 203px; " })%>
I want to do something like this:
<%= Html.TextBoxFor(m => m.WorkingModel.Detail.ApprovedBy, new { id = "InvoiceApprovedBy", Model.InvoicedApprovedBy, style = "width: 203px; " })%>
It sets a html attribute called "InvoicedApprovedBy" instead of just placing the string "disabled="disabled"" into it. How to I get it to place the string?