Just a quick hack for everyone of you which are wondering how to get a well formed tag using asp.net. It turns out that our beloved Label control can render as a span or as a label.

All you have to do to change its behaviour is to fill the Label property AssociatedControlID with the id of the control you want to bind.

That’s it!