I was looking for a clean way to conditionally show a block of html and came across this post
It oulines a really clean way to conditionally render a partial view while avoiding having if/else logic directly in your view.
Tags: mvc conditionally render view
MVC
Download at CodePlex
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. © Copyright 2023