With the WebForms view engine, I’ll commonly use the ternary operator for very simple conditionals, especially within HTML attributes. For example: <a class="<%=User.Identity.IsAuthenticated ...
-
May 5, 2022
- 0 Comments