Here's the scenario, I want a single page to display different content depending on a session variable. The issue is , the only solution I can think of for using a code-behind method is to hide the div showing the content but I just can't help but feel that it isn't secure. The other method I have in mind is to have code within the markup as you would do in PHP, for e.g.
<% if (Session["variable"].ToString() == "food") { %>
//Markup
<% } %>
So do you think hiding a div doesn't have security risks or is there a better method for dynamically changing the content using code-behind?