I am using razor page in .net core 2.1. In .aspx we can use and write some logic inside it and we can hide or show this placeholder in our .cs class but I wonder how can we achieve this in Razor page? I can't see any option like placeholder in @Html. I want to create two placeholder and based on some condition in my .cs class I want to hide one and show another one. Also I don't want to make an ajax call. I know this is achievable by creating a div and set display none initially and show the div based on ajax response but is it possible without an ajax call?