Set literal text with inline code in aspx file
<p>In an ASP.NET project, I have a literal. In order to set the text property, I used the following code:</p>

<pre><code>&lt;asp:Literal ID="ltUserName" runat="server" Text="&lt;%= session.UserName %&gt;" /&gt;
</code></pre>

<p>But instead of value of <code>session.UserName</code>, literal shows <code>&lt;%= session.UserName %&gt;</code>. I feel that solution is simple but I couldn't do it. How can set the text with inline code?</p>
