RenderContents is the wrong time to register the script. as the script block
comes before the controls html, its too late to render it after you have
rendered the content. Suprised your code ever worked.
move the RegisterClientScriptBlock to OnPreRender where it belongs.
-- bruce (sqlwork.com)
> Reposting here as you can practically see the tumbleweed blow by in
> microsoft.public.dotnet.framework.aspnet.webcontrols....
[quoted text clipped - 14 lines]
> behaving differently when the control is placed on a Master page, and
> what do I have to do to get it to work?
Ed Courtenay - 15 Feb 2008 22:18 GMT
> RenderContents is the wrong time to register the script. as the script block
> comes before the controls html, its too late to render it after you have
[quoted text clipped - 3 lines]
>
> -- bruce (sqlwork.com)
How the hell did I miss that? *blush*
It's strange what you miss when it's staring you straight in the face!
>> Reposting here as you can practically see the tumbleweed blow by in
>> microsoft.public.dotnet.framework.aspnet.webcontrols....
[quoted text clipped - 14 lines]
>> behaving differently when the control is placed on a Master page, and
>> what do I have to do to get it to work?