Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Hide / Show ASP.NET Core HTML Tags

$
0
0
@if (TempData["fnOutput"] == true)
                    {<span id="fnoutput"></span>
                    }

I want to hide / show HTML tags based on the bool value in TempData. Similarly, I tried with ViewBag and it doesn't return a result. How can I hide / show HTML tags without using Javascript?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>