By setting _sControlClass you have removed the WebForm CSS class from the HTML. That could very well ruin how things are rendered. Try changing that into this._sControlClass += " WebForm0"; (note the space before the classname).