I’m using a control in my asp.net web page that I don’t have the source code, this control renders some undesirable BR(new line) tags in HTML which they are breaknig my layout. I would like to know if there is a way I can take control of render process without breaking control behaviour (it is a very complex ajax powered one) or do something client side.
I tried to use CSS to solve that, but without sucess… indeed, it works in firefox but doesnt in IE6:
#my-div-place-holder br
{
position: absolute;/*hack: Supress BR tags*/
}
You have two different options for injecting your own rendering for a control:
Rendermethod.If you opt to subclass, you might have access to base class methods (if they exist) which perform different aspects of the rendering so you don’t have to implement the entire rendering logic yourself.
If you prefer not to delve into server-side rendering, you could accomplish the same thing with javascript.