title: Rendering Javascript in an asp.net master page at a specific spot
body: <p>I've a specific requirement of rendering Javascript onto a master page of an asp.net site. There are two specific requirements of it:</p>
  
  <p>1) The position - It should be rendered at the very end of the page just before BODY tag
  2) Control - Render it only when requested.</p>
  
  <p>I solved #2 by creating a web-part which will render the javascript only when its placed on the page. But I could not achieve #1 since the web part doesn't give me control over where to render the javascript inside body tag.</p>
  
  <p>Did anyone solve this problem before?</p>
  
  <p>Please advice.</p>
  
  <p>Thanks
  Sachit</p>