Because those scripts are rendered when Page passes to Render phase, so
calling RegisterXXX methods in Render is too late for them gettting to
outputted (because Page has already prepared them)
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Jon Paugh" <> wrote in message
news:035e01c3aee9$bc350470$...
> I noticed that if in my WebControl derived class I call
> RegisterClientScriptBlock in my Render method I don't see
> the javascript, but if I call it from PreRender, I do see
> the javascript in my html page. I would love to know
> why ?