views:

12

answers:

2

Hi ,

i am using ScriptManager in my webpage. i am also using a lot of pagemethods in this page. When i look at the viewsource of the browser after the page has been rendered i find a lot of javascript which has been generated by the scriptmanager.

how can i browser cache all these scripts so that they are not loaded everytime the page is rendered.

A: 

By default they are cached. If you analyze the HTTP headers for these files you will find the cache settings. try analyzing with firebug or any other tool you use. There is also an online service which will analyze it for you http://www.port80software.com/

ajay_whiz
A: 

You can't do it securely. The Event Validation mechanism would throw "Invalid Postback or Callback arguments: errors.

The hidden "__EVENTVALIDATION" variable changes from postback to postback, and even though you can disable it, it's not a good idea,

See this article for more info.

David Stratton

related questions