Set a js variable in a html include
<p>I have a ASP.NET page that uses the include method for header. I am adding a JS variable that I access from JS functions</p>

<p>In <code>head.htm</code></p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
    var render=&lt;%= RenderProperty %&gt;;
&lt;/script&gt;
</code></pre>

<p>The <code>RenderProperty</code> is a method in the base page class (a .cs file that inherits from <code>System.Web.UI.Page</code>)</p>

<p>It looks something like this:</p>

<pre><code>private bool _renderProp = false; 
public bool RenderProperty 
{
  get
  {
    return _renderProp;
  }
  set
  {
    _renderProp = value;
  }
}
</code></pre>

<p>On a page by page basis, I set the <code>RenderProperty</code> in the <code>Page_Load</code> of a aspx page</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
  RenderProperty = true;
}
</code></pre>

<p>I get a compile time error that says:</p>

<pre><code>The name 'RenderProperty' does not exist in the current context 
C:\...\head.htm
</code></pre>
