setting up a class to store constant values which can be used throughtout appliation
<p>I am trying to declare variables in class file of a control and to use them in ascx file on load itself but with no success (doing first time asp.net app)</p>

<p>for example:</p>

<p>in .cs</p>

<pre><code>    public void OnInit()
    {
        int username = "John";
    }
</code></pre>

<p>then in ascx :</p>

<p>&lt; a href = "&lt;%=username %>">test &lt; /a></p>

<p>But this throws  me error that username was not defined. I have tried Page_Load, Init too with no success...anyone???</p>
