title: ASP.Net ITemplate - how do i read the raw content defined inside
body: <p>i have situation where in i would like to read the content of the ITemplate.</p>
  
  <p>for example i have something like</p>
  
  <pre><code>&lt;WD:PopUpPanel runat="server" ID="MyPoPUp"&gt;
  &lt;InitScript&gt;
      // javascript
      document.getElementByID('urName').value = 'enter your name';
  &lt;/InitScript&gt;
  &lt;Content&gt;
      Name:&lt;asp:TextBox runat="Server" ID="urName"/&gt;
  &lt;/Content&gt;
  &lt;/WD:PopUpPanel&gt;
  </code></pre>
  
  <p>basically the contents inside the <code>InitScript</code> is some javascript, which i want to use in <code>ScriptManager.RegisterScript</code>.</p>
  
  <p>so my question is how do i define InitScript???</p>
  
  <p>i tried</p>
  
  <pre><code>public ITemplate InitScript;
  </code></pre>
  
  <p>this gives me <code>CompiledTemplateBuilder</code> object, how do i read the content inside <code>InitScript</code> ???</p>
  
  <p>thanks for reading, any help would be highly appreciated...</p>