This is my code:

```
protected void Button1_Click(object sender, EventArgs e)
        {

            Timer1.Enabled = true;
        }

int _ta = 0;
 protected void Timer1_Tick(object sender, EventArgs e)
        {
            if (_ta < 1)
            {
                _ta++;
                System.Diagnostics.Debug.WriteLine(_ta);

            } 

```

But the `WriteLine(_ta);` doesn't stop after 1 time, it just continutes. Why? How can achieve this effect?

**EDIT:**

Im sorry, I wasn't clear enough:

I meant:

```
System.Diagnostics.Debug.WriteLine(_ta);

```

This still happens, even though \_ta is bigger then 0.