Is the TextBox within a login control? This may happen if you have the login control as the login control redirects to the default page.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan