Download course ASP.NET : AJAX Extensions

Download course  ASP.NET : AJAX Extensions






Download course  ASP.NET : AJAX Extensions












ScriptManager


Starting point for ASP.NET AJAX pages
What does ScriptManager do?
Downloads JavaScript files to client
Enables partial-page rendering using UpdatePanel
Provides access to Web services via client-side proxies
Manages callback timeouts and provides error handling options and infrastructure
Provides registration methods for scripts
Enables ASP.NET AJAX localization support
Every page requires one ScriptManager instance!

ScriptManager Schema

<asp:ScriptManager ID="ScriptManager1" Runat="server"
  EnablePartialRendering="true|false"
  EnablePageMethods="true|false"
  AsyncPostBackTimeout="seconds"
  AsyncPostBackErrorMessage="message"
  AllowCustomErrorsRedirect="true|false"
  OnAsyncPostBackError="handler"
  EnableScriptGlobalization="true|false"
  EnableScriptLocalization="true|false"
  ScriptMode="Auto|Inherit|Debug|Release"
  ScriptPath="path">
 
   
 
 
   
 
</asp:ScriptManager>

ScriptManagerProxy

"Proxy" for ScriptManager controls declared in master pages
Lets content pages declare script and service references

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" Runat="server">
 
   
 
 
   
 
</asp:ScriptManagerProxy>.........



































Download course  ASP.NET : AJAX Extensions


0 commentaires: