title: Display value of Resource without Label or Literal control
body: <p>How do I display the value of a resource without a ASP.NET control, i.e. I want to avoid this:</p>
  
  <pre><code>&lt;asp:Label text="&lt;%$ Resources: Messages, ThankYouLabel %&gt;" id="label1" runat="server" /&gt;
  </code></pre>
  
  <p>Instead I would prefer to do just this in my .aspx pages:</p>
  
  <pre><code>&lt;%$ Resources: Messages, ThankYouLabel %&gt;
  </code></pre>
  
  <p>... but I can’t, a parser error is thrown: </p>
  
  <pre><code>Literal expressions like '&lt;%$ Resources: Messages, ThankYouLabel %&gt;' are not allowed.
  Use &lt;asp:Literal runat="server" Text="&lt;%$ Resources: Messages, ThankYouLabel %&gt;" /&gt; instead.
  </code></pre>