value is changing in page life cycle?
<p>Im trying to make a simple website that will generate 2 numbers, and then the user will need to answer the correct result of addition of 2 of these numbers..</p>

<p>this is my front :</p>

<pre><code>&lt;div id="questionContainer"&gt;
    &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                &lt;ContentTemplate&gt;  
        &lt;div id="firstNumber"&gt;
            &lt;%=firstNum %&gt;
        &lt;/div&gt;
        &lt;div id="operator"&gt;
            &lt;%=operatorString %&gt;
        &lt;/div&gt;
        &lt;div id="secondNumber"&gt;
           &lt;%=secondNum %&gt;
        &lt;/div&gt;
        &lt;div id="answerWrapper"&gt;

                    &lt;input type="text" id="answer" name="answer" placeholder="your answer" /&gt;

            &lt;asp:Button runat="server" ID="submit" name="submit" OnClick="AnswerQuestion" Text="Answer" /&gt;
              &lt;input type="hidden" name="op" id="op" value="1" /&gt;
            &lt;div id="error"&gt;
                &lt;%=textForUser %&gt;
            &lt;/div&gt;
            &lt;/ContentTemplate&gt;
            &lt;/asp:UpdatePanel&gt;
        &lt;/div&gt;
</code></pre>

<p>and this is the code behind :</p>

<pre><code>protected static int firstNum;
    protected  static int secondNum;
    protected bool operatorTrueOrFalse = true;
    protected string operatorString = "+";
    protected GameLogic gl;
    protected static int answer;
    protected bool isItTrue;
    protected int userAnswer;
    protected string textForUser ="hello";
    protected string op;

    protected void Page_Load(object sender, EventArgs e)
    {



        if (Page.IsPostBack || op == "1") // if solved X or null.
        {
            gl = new GameLogic();
            firstNum = gl.GenerateNumber(4);

            secondNum = gl.GenerateNumber(4);

            answer = gl.SolveFor(firstNum, secondNum, operatorString);
        }


    }

    public void AnswerQuestion(object sender, EventArgs e)
    {
        if (Request["answer"] != null)
        {
            userAnswer = int.Parse(Request["answer"]);

        }
        else
        {
            textForUser = "You need to type something";
        }


        if (answer == userAnswer)
        { // user has answered correctly.
            isItTrue = true;
            textForUser = "very good";
            op = "1";
        }
        else
        {// user has answered in - correctly.
            isItTrue = false;
            textForUser = "you are wrong";
            op = "0";
        }
    }
</code></pre>

<p>problem is that I notice that everytime I try to answer the question in the textbox, the numbers changes.. Its like Im not answering the correct question.</p>
