title: Generate javascript file on the fly in asp.net mvc
body: <p>Friends,</p>
  
  <p>I am trying to use DyGraph in my application. Please look at the code below -</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"&gt;
      &lt;title&gt;crosshairs&lt;/title&gt;
  
      &lt;script type="text/javascript" src="dygraph-combined.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript" src="data.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
  </code></pre>
  
  <p>The code uses data.js file containing function to get some static data. 
  I want data.js to be generated using a controller method so that it will generate data using database.</p>
  
  <p>Can anybody help me out to resolve this issue.</p>
  
  <p>Thanks for sharing your valuable time.</p>