Defaulting hidden field value using inline server code
<p>I have an ASP.NET page where I defined a property in the code behind as follows:</p>

<pre><code>    public int testProperty { get; set; }
</code></pre>

<p>In my page I define a hidden field and want to set the value using an inline server code as follows:</p>

<pre><code>&lt;asp:HiddenField ID="hftestProperty" runat="server" Value="&lt;%= testProperty.ToString() %&gt;" /&gt;
</code></pre>

<p>The problem I am having is that when the control renders in the browser, it renders the value the same way I defined it:</p>

<pre><code>&lt;input type="hidden" name="hftestProperty" value="&lt;%= testProperty.ToString() %&gt;"&gt;
</code></pre>

<p>Any idea why this is happening?</p>
