dynamically enable and disable button asp.net mvc code example
Example: c# razor add disabled to button if
<input type="button" class="btnresetinvoice button" value="Reset"
data-invoiceid="@item.InvoiceId"
@{ if(item.PMApproved != true) {
@:disabled="disabled"
} }
/>