Thanks very much fluxtah - moving the attribute additions to that method
seems to have made the problem go away. Am still very interested to know
what was going on before thought!
"fluxtah" <> wrote in message
news:...
>
> Hiya, new guy here 
>
> The best way to add attributes to a derived control is to override
> AddAttributesToRender method.
>
> protected override void AddAttributesToRender(HtmlTextWriter writer)
> {
> base.AddAttributesToRender(writer);
>
> writer.AddAttribute("onblur", "some javascript");
> }
>
>
>
> --
> fluxtah
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>