Home All Groups Group Topic Archive Search About

How to figure out what script files gets loaded??

Author
6 Oct 2005 7:05 AM
Søren M. Olesen
Hi

Is there an easy way to figure out, from code behind, what javascript files
gets loaded on an .aspx page??

Of source I cound tap into the render and parse the html, but I was
wondering if that information already exists somewhere....

TIA

Søren

Author
7 Oct 2005 11:35 AM
Jakob Christensen
Søren,

You could change all javascript includes to reference .ashx files instead
and then write an HttpHandler to handle the includes.  This would give you
complete control of what javascript is being requested.

See this link for an example of how to write HttpHandlers:
http://www.dotninjas.dk/artikler/codehttphandler/

HTH, Jakob.
Show quote
"Søren M. Olesen" wrote:

> Hi
>
> Is there an easy way to figure out, from code behind, what javascript files
> gets loaded on an .aspx page??
>
> Of source I cound tap into the render and parse the html, but I was
> wondering if that information already exists somewhere....
>
> TIA
>
> Søren
>
>
>

AddThis Social Bookmark Button