To make sure this system works, you must keep both the .aspx markup file(with the control)and the .cs file(with the source code)synchronized.
If you edit control names in one piece using another tool(such as a text edit), you'll break the link, and your code won't compile.