The solution for this is to add runat="server" to the HMTL element one wants to hide and then set the Visible property that the object acquires due to the runat clause. The Visible property is set using some special syntax to access the MonoX API like below:
Visible="<% $Code: Page.User.Identity.IsAuthenticated %>" >
set config "Default Web Site/portal"
The quoted command above needs to be in a single line and obviously you have to replace “Default Web Site/portal” with your site’s virtual folder “path” as shown in IIS Manager’s tree view.
Probably can configure that via web.config in ASP.net websites, but if nothing else works can try this too.