Can I call a variable from my .NET codebehind page in the actual aspx?
<p>Say in my codebehind .cs file, I set a variable:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    int x = 2;
}
</code></pre>

<p>I want to display this dynamically in my aspx page. But this code won't work:</p>

<pre><code>&lt;% Response.Write(x); %&gt;
</code></pre>

<p>How can i accomplish this? Is there any way to pass variables?</p>
