Can I assign a value to a variable which Sticks to this variable in every scope?
<p>Can I assign a value to a variable (int) and never lose this value inside any scope ?<br/>
the problem is I am assigning the value to the variable in some scopes but the variable returns to its default value (zero) in other scopes.. 
Example :</p>

<pre><code>    protected void Button_AddNewCourse_Click(object sender, EventArgs e)
{
    ID = 10;
}
</code></pre>

<p>so when I am trying to use <code>ID</code> in other functions it falls back to zero </p>

<pre><code>    protected void AnotherFunction(object sender, EventArgs e)
{
    // Variable ID here is zero
}
</code></pre>
