title: How to use server tag inside alert()?
body: <p>Perhaps this is a stupid thing to ask but the already available solutions didn't seem to work for me.</p>
  
  <p>I have a Resources.resx file and I am trying to use this inside an <code>alert()</code></p>
  
  <p>Here's what I did.</p>
  
  <pre><code>if(obj)
  {
     myMethod();
  }
  else
  {
     alert(&lt;%= Resources.Nill %&gt;);
  }
  </code></pre>
  
  <p>I also tried to use quotes like <code>alert("&lt;%= Resources.Nill %&gt;");</code> (both single and double) but then the output generated is <code>&lt;%= Resources.Nill %&gt;</code> on the screen.</p>
  
  <p>I want the value the Resource holds to be showed when <code>else</code> is executed. What am I doing wrong?</p>