title: How to stop asp.net encoding characters before outputing to html?
body: <p>I have a function that generates a javascript code for me.</p>
  
  <pre><code>&lt;img src="abc.png" alt="hello" onclick="&lt;%: getOnCilckJS(arg)  %&gt;" /&gt;
  </code></pre>
  
  <p>c# code</p>
  
  <pre><code>protected String getOnCilckJS(int arg)
  {
    if (arg==1)
    {
       return "alert('hello world');";
    }
    else
    {  return "alert('hello universe');"; 
    }
  }
  </code></pre>
  
  <p>all works fine apart from when the page is loaded asp.net converts single quotations <code>'</code> to the encoded html string (<code>&amp;#39;</code>)</p>
  
  <p>How can I avoid this and make <code>'</code> appear in the html?</p>