I want to disable a button if this property is false:
public bool HasRightSELECT { get; set; }
I tried to achieve thsi with:
<button type="submit" class="btn btn-info" disabled="!@Model.TablesWithRights[i].HasRightSELECT" name="View" value="@i">View</button>
or
<button type="submit" class="btn btn-success" disabled="@{!Model.TablesWithRights[i].HasRightSELECT}" name="Insert" value="@i">Insert</button>
I know I could just rename the property to HasNORightSelect
but I am wondering how I can set the disable value with the "inverted" value.