If you create a templated server control, import it into your web-site or web application and you want to do:

and you are allowed to do only:

you need to modify your ItemTemplate property to look like this: