Created
November 12, 2015 07:29
-
-
Save TDK1964/dcffa51a4d46cf9f797d to your computer and use it in GitHub Desktop.
MVC Hide div based on model property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="@(Model.booleanVariable ? "display:block" : "display:none")">Some links</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment