Another question : Is possible to put my script inside <HEAD>...</HEAD>
"John Saunders" <john.saunderssurfcontrol.com> escreveu na mensagem
news:OL$RpqYdDHA.828TK2MSFTNGP11.phx.gbl...occurs.> "Genival" <geniobrhotmail.com> wrote in message
> news:e1x0bIOdDHA.2804TK2MSFTNGP11.phx.gbl...> > Hello Folks...
> > From my control i need notify client side script about some eventsdata>> > Any idea ?
> You can't quite do this. The only thing your control can do is to send+> (usually HTML) to the client.
> Now, you may be able to send some HTML to the client which will cause some
> client script to execute. For instance, you could have a control called
> Alarm which would take its "Text" property and render script as follows:
> protected override void OnPreRender(EventArgs e)
> const scriptEnd = "');</script>";
> this.Page.RegisterStartupScript(this.UniqueID, scriptStart + this.Textright> scriptEnd);
> This script would execute once the page was loaded, because it will be
> emitted right before the closing </form> tag. You can also emit script> after the opening <form> tag with Page.RegisterClientScriptBlock.
> John Saunders
> Internet Engineer