I have implemented this extender in the .aspx page as a test and it is working fine.
However, I am actually adding controls dynamically in the .cs file and would like to add this to a text box. Please can you show how to do this and any libraries I need to include.