ScriptManager control in ASP. NET

Source: Internet
Author: User

The ScriptManager control is included in ASP. NET 2.0 AJAX Extensions, which is used to process all the components on the page and partial page updates, generate the relevant client proxy script so that the Web Service can be accessed in JavaScript, all must support ASP. net ajax asp.. NET page can have only one ScriptManager control. In the ScriptManager control, we can specify the required script library, the Web Service called through JS, and page error handling.

<Asp: ScriptManager/> is used to define a ScriptManager. The simple ScriptManager definition form is as follows:

 
 
  1. <asp:ScriptManagerIDasp:ScriptManagerID="ScriptManager1" 
  2. runat="server"> 
  3. <AuthenticationServicePathAuthenticationServicePath=""/> 
  4. <ProfileServiceLoadPropertiesProfileServiceLoadProperties=""Path=""/> 
  5. <Scripts> 
  6. <asp:ScriptReference/> 
  7. </Scripts> 
  8. <Services> 
  9. <asp:ServiceReference/> 
  10. </Services> 
  11. </asp:ScriptManager> 


Scripts attributes

The main attribute is the Path that specifies the script Path. ScriptMode specifies the Script Mode of the client. it overwrites the ScriptMode attribute in ScriptManager, and IgnoreScriptPath specifies whether to ignore the ScriptPath attribute in ScriptManager.

I have learned about the ScriptManager control. The attributes of AuthenticationService and ProfileService are simple.

  1. Introduction to ASP. net mvc Framework
  2. MvcContrib. FluentHtml of ASP. NET MVC
  3. Functions of ASP. NET Framework and Application of ASP. net mvc pattern
  4. Analysis of Asp.net MVC Lifecycle
  5. Overview of ASP. net ajax Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.