Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP.NET Ajax: ScriptResource.axd is being invoked 12 times per each aspx page request!

Max2006
Guest
 
Posts: n/a
#1: Sep 18 '07
Hi,

I use ASP.NET Ajax in my web site and I am monitoring the HTTP requests per
each page by using fidler. I am surprised by the excessive call of
ScriptResource.axd with different query string variables. I am pasting a
sample of HTTP trace at the bottom of this post. The call for
ScriptResource.axd take lots time percentage out of total response time. Is
this by design or there is something wrong with my AJAX configuration in
web.config?

Any help would be appreciated,
Max




http://site/ScriptResource.axd?d=B2p...14968426538014
http://site/ScriptResource.axd?d=B2p...14968426538014
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...4zp41&t=633183



bruce barker
Guest
 
Posts: n/a
#2: Sep 19 '07

re: ASP.NET Ajax: ScriptResource.axd is being invoked 12 times per each aspx page request!


your configuration is correct and this is by design.

ScriptResource.axd returns a resource string, in these cases javascript
source files, but they can be images. the parameters specify the
assembly with the resource, the resource id and the mime type. the
parameters are encrypted.

how many references there are depend on what ajax components your page
uses. the ajax library has:

MicrosoftAjax.js - base code(82kb)
MicrosoftAjaxTimer.js - timer control (3kb)
MicrosoftAjaxWebForms.js - update panel (29kb)

these is also the underlying scripts for the asp.net client support
(webresource.axd):

webformAutoFocus.js - used set focus
webformPostback.js - used auto postback or validation
webformValidation.js - validator support

if you use the Ajax Tool Kit then there is a ScriptResource.axd call for
each extension used.

in general the browser cache these files, but it do a head.

-- bruce (sqlwork.com)


Max2006 wrote:
Quote:
Hi,
>
I use ASP.NET Ajax in my web site and I am monitoring the HTTP requests per
each page by using fidler. I am surprised by the excessive call of
ScriptResource.axd with different query string variables. I am pasting a
sample of HTTP trace at the bottom of this post. The call for
ScriptResource.axd take lots time percentage out of total response time. Is
this by design or there is something wrong with my AJAX configuration in
web.config?
>
Any help would be appreciated,
Max
>
>
>
>
http://site/ScriptResource.axd?d=B2p...14968426538014
http://site/ScriptResource.axd?d=B2p...14968426538014
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...83819608593750
http://site/ScriptResource.axd?d=SQE...4zp41&t=633183
>
>
Max2006
Guest
 
Posts: n/a
#3: Sep 19 '07

re: ASP.NET Ajax: ScriptResource.axd is being invoked 12 times per each aspx page request!


Thank you Bruce for detail information.

How do you know all this details about ScriptResource.axd?
Is there any resource that I can read about ScriptResource.axd?

Thank you,
Max


"bruce barker" <nospam@nospam.comwrote in message
news:%236t1OVl%23HHA.1416@TK2MSFTNGP03.phx.gbl...
Quote:
your configuration is correct and this is by design.
>
ScriptResource.axd returns a resource string, in these cases javascript
source files, but they can be images. the parameters specify the assembly
with the resource, the resource id and the mime type. the parameters are
encrypted.
>
how many references there are depend on what ajax components your page
uses. the ajax library has:
>
MicrosoftAjax.js - base code(82kb)
MicrosoftAjaxTimer.js - timer control (3kb)
MicrosoftAjaxWebForms.js - update panel (29kb)
>
these is also the underlying scripts for the asp.net client support
(webresource.axd):
>
webformAutoFocus.js - used set focus
webformPostback.js - used auto postback or validation
webformValidation.js - validator support
>
if you use the Ajax Tool Kit then there is a ScriptResource.axd call for
each extension used.
>
in general the browser cache these files, but it do a head.
>
-- bruce (sqlwork.com)
>
>
Max2006 wrote:
Quote:
>Hi,
>>
>I use ASP.NET Ajax in my web site and I am monitoring the HTTP requests
>per each page by using fidler. I am surprised by the excessive call of
>ScriptResource.axd with different query string variables. I am pasting a
>sample of HTTP trace at the bottom of this post. The call for
>ScriptResource.axd take lots time percentage out of total response time.
>Is this by design or there is something wrong with my AJAX configuration
>in web.config?
>>
>Any help would be appreciated,
>Max
>>
>>
>>
>>
>http://site/ScriptResource.axd?d=B2p...14968426538014
>http://site/ScriptResource.axd?d=B2p...14968426538014
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...83819608593750
>http://site/ScriptResource.axd?d=SQE...4zp41&t=633183
>>
Walter Wang [MSFT]
Guest
 
Posts: n/a
#4: Sep 21 '07

re: ASP.NET Ajax: ScriptResource.axd is being invoked 12 times per each aspx page request!


Hi Max,

Note the "ScriptResource.axd" is a http handler defined in asp.net ajax
web.config:

<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false"/>

You can download the source code asp.net ajax and learn more about it by
reading the class ScriptResourceHandler's source code.

Hope this helps.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Closed Thread