title: How to set resource key to anchor HREF tag on aspx page in asp.net localization
body: <p>I want to set <code>Resource key</code> to the below <code>href</code> of <code>anchor tag</code> and used below two approaches.</p>
  
  <pre><code>&lt;a href='&lt;%$ Resources:Resource, NewsletterArchive %&gt;' class="button action blue"&gt; &lt;/a&gt;
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>&lt;a href='&lt;%=CommunityServer.Web.ResourceLibrary.Resource.NewsletterArchive %&gt;' class="button action blue"&gt; &lt;/a&gt;
  </code></pre>
  
  <p>But, no luck..
  Got the below error</p>
  
  <blockquote>
  <pre><code>&gt;  Literal expressions like '&lt;%$ Resources:Resource, NewsletterArchive
  &gt; %&gt;' are not allowed. Use &lt;asp:Literal runat="server" Text="&lt;%$
  &gt; Resources:Resource, NewsletterArchive%&gt;" /&gt; instead.
  </code></pre>
  </blockquote>
  
  <p>Please, help.</p>