I need to control the visibility of certain markup based on a key in the web.config file. The key is defined as follows:
<add key="IsDemo" value ="true"/>
I am looking for a way to show or hide the markup for a non-server HTML element without using a code-behind file, as there are no .cs files and no runat=server controls. Is there a way to achieve this using only ASPX markup? I am thinking of something like the following pseudo code:
IF ( IsDemo == "true" )
THEN
<tr>
<td id="tdDemoSection" colspan="2" align="left" valign="top">
<.....>
</td>
</tr>
ENDIF
Can anyone provide guidance on implementing such conditional logic in ASPX markup? Your help is greatly appreciated.
EDIT:
The section I want to show or hide contains sensitive data like usernames and passwords. Therefore, I need to ensure that the markup is not visible to users using tools like Firebug or Web Developer Tools. The markup should remain hidden on the client side.