title: script in mvc razor editortemplate
body: <p>I am using an editortemplate, I have shown partial code below.
  The script tag repeats for each of the rows being rendered by the partial view.</p>
  
  <p>Is there a way to get the script tag into the page header, or at the very least have it included in the page only once?</p>
  
  <p>I would like the code in the partial view as that is where it truly belongs.</p>
  
  <hr>
  
  <pre><code>@* DisplayTemplates/contact.cshtml *@
  @model Online.Web.Contacts.Contact
  
  &lt;script id="xxx"&gt;
    stuff here.
  &lt;/script&gt;
  
  &lt;tr&gt;
     &lt;td&gt;@Html.EditorFor(x =&gt; x.FirstName)&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>