Asp.net variables values
<p>I am using ASP.net in my project. </p>

<p>I Declare a Variable btn_clik, tot at the beginning of Class. </p>

<pre><code> public partial class Table : System.Web.UI.Page
    {
        public int btn_click = 1, tot = 0;
</code></pre>

<p>I have two button, Up And Down. When I click Up button btn_click variable want to decrease. And Down Button btn_click variable want to increase. </p>

<pre><code> protected void btnUp_Click(object sender, EventArgs e)
 {
            if (btn_click != 1) { btn_click--;}              
 }

 protected void btnDown_Click(object sender, EventArgs e)
 {
       if (btn_click &lt; tot) { btn_click++;}               
 }
</code></pre>

<p>But At the Page load,.. btn_click vale is 1; then I Click Down Button,.. btn_click value is 2. I repeat the Down Button Click,.. But btn_click value is still 2; I Check that with breakpoints. Each Time btn_click Variable is going to 1, At that time of Button Click.</p>

<p>What is the Mistake...</p>
