In order to reference a control, the code-behind must know about the control. In your case, the code-behind has no idea the control exists, probably because the control is not declared in your code-behind file.
If you're using VS 2003, you can switch to design view, and then switch back to HTML view. That should add the control.
Or, you could declare the control yourself.
Protected WithEvents name as HtmlInputText