title: asp.net placeholder in the head of a page
body: <p>I have a page that includes javascript which I only want to run under certain conditions. To do this I have placed the scripts into an asp:placeholder</p>
  
  <p>This actually seems to work but when I run a debug on the page I get the following warning.</p>
  
  <p><em>Element 'placeholder' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.</em></p>
  
  <p>If I move the placeholders into the body of the page the warning goes, but that means I'm left with scripts in the body which I also want to avoid. Does anyone have any hints on the best practice for this scenario?? thanks</p>
  
  <pre><code>Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
  
  dim lt as new Literal()
  lt.text = "&lt;script type='text/javascript' src='scripts/pageLoadAnimations.js'&gt;&lt;/scr" &amp; "ipt&gt;"
  me.Header.Controls.Add(lt)
  
  End Sub
  </code></pre>