title: asp.net Can I inject configuration settings into javascript?
body: <p>I have a page that uses an external javascript file.  That file requires variables that are different in Dev, QA and production environments, causing me to need to maintain multiple copies of the same script file for each environment.</p>
  
  <p>I'd prefer to maintain the values of these variables in web.config (perhaps appSettings section), and resolve these values at runtime, before streaming the .js file to the browser.  Is there a way to do this?</p>