Re: Register javascript block globally...

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Cliff Harris (hersh_at_myrealbox.com)
Date: 06/16/04


Date: Wed, 16 Jun 2004 10:45:51 -0400

Both your and Guadala's ideas are excellent... and that is what I would have
done had I thought of this further in advance :)
Unfortunately, I'm all done now and just want to add in the javascript, so I
was hoping to find a way to just kinda insert it in at the last minute. I'm
going to assume there is no real way to do that... so, maybe I'll get to
work on changing all my pages to inherit from my own page class (thank
goodness for Find/Replace).

Thanks,
-Cliff

"Oleg Ogurok" <oleg@ogurok.com.ihatespammers.ireallydo.co> wrote in message
news:10d0lqqcrts10e8@corp.supernews.com...
>
> Extend System.Web.UI.Page class, override its Render method and register
> your script there.
> Then simply have every codebehind class inherit from your newly created
> class.
>
> -Oleg.
>
> "Cliff Harris" <hersh@myrealbox.com> wrote in message
> news:uVgQgs6UEHA.1888@TK2MSFTNGP11.phx.gbl...
> > Is there a way for me to globally add a javascript block to all pages?
I
> > was hoping I could use one of the application events, but I don't seem
to
> > have access to the page object to use RegisterClientScriptBlock. Is
there
> a
> > way for me to accomplish this without adding something to every page?
> >
> > Thanks,
> > -cliff
> >
> >
>
>



Relevant Pages

  • Re: Register javascript block globally...
    ... override its Render method and register ... your script there. ... Then simply have every codebehind class inherit from your newly created ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: FCKEditor and ASP.NET
    ... HTML I-Frame object and, subsequently, use it as an HTML editor. ... I can register client-side script with the "behind code" for each ASPX ... Private Sub ClientScriptFCKActivate() ... 'Register _JavaScript block for Search Incident button ...
    (microsoft.public.dotnet.framework.aspnet)