Access C# Variable From JavaScript
<p>I have a public property in my code behind named Tab which I'm trying to access in the pages aspx file with javascript but I'm not sure how to get the right value.</p>

<p>This gives me the value I want</p>

<pre><code>alert('&lt;% Response.Write(this.Tab); %&gt;');
</code></pre>

<p>This does not</p>

<pre><code> var x = &lt;% =this.Tab %&gt;;
 alert(x); 
</code></pre>

<p>Any ideas?</p>
