ASP.NET Code won't evaluate in aspx file
<p>I have an aspx file like</p>

<pre><code>&lt;div style="&lt;%= MyFunc() %&gt;"&gt;&lt;/div&gt;
</code></pre>

<p>but when I view it in the webpage, it gives the style string the literal as seen above, not the evaluated MyFunc. What could cause this?</p>

<p>EDIT:</p>

<p>it turns out, the tag had runat="server" on it... removing that fixed the issue. Why would that be?</p>
