title: How do you output raw javascript in asp.net
body: <p>I would like to output raw javascript to an aspx response. Using response.write fails because along with the javascript, it dumps all of the other asp.net stuff in the page, for example:</p>
  
  <pre><code>...
  &lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTAxODk4MjA3OWRk9jVlI2KaQPiVjEC+P0OPYGV74vKjJQZuwD6OaHhb+U0=" /&gt;
  ...
  </code></pre>
  
  <p>Is there anyway to simply output raw text to the output without having all of the other asp.net stuff on the page? I am trying to use the page as follows:</p>
  
  <pre><code>&lt;script src="mypage.aspx"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>Where this page contains the javascript this triggers off the aspx page, however chrome doesn't like it for obvious reasons... it expects javascript, but it is getting javascript + markup + .NET injected stuff.</p>
  
  <p>Please no comments on why I am doing this! Working on very specific problem. </p>