Reputation: 279
The following code not working. please help me to figure out this
<div style="visibility: @(@Model.HasBackUp ? "block" : "none")"/>
Upvotes: 0
Views: 1768
Reputation: 1426
You have to remove the @
in front of the Model so your code should look like this:
<div style="display: @(Model.HasBackUp ? "block" : "none")"/>
Upvotes: 3