Accessing user control properties defined in code behind in markup
<p>I have a public property defined in code behind of a user control. I want to toggle visibility of controls in the markup based on the property's value. However, using the 
following syntax:</p>

<pre><code>&lt;td  style="display:&lt;%#(Container.PageControlMode == PageControlMode. PageMode.Wizard) ? "none" : "inline" %;"&gt;
</code></pre>

<p>I have the following property in my code behind:</p>

<pre><code>public PageMode PageControlMode { get; set; }
</code></pre>

<p>Does not work and generate errors. What is a good way around it?</p>
