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

M

Max2006

B

bruce barker

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)
 
M

Max2006

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
 
W

Walter Wang [MSFT]

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 ([email protected], 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top