ScriptManager in ASP.NET Ajax

This entry is part 9 of 13 in the series ASP.NET Ajax

In order to work with ASP.NET AJAX, an .aspx page must have a ScriptManager tag. Without it ASP.NET AJAX doesn’t work as it provides necessary framework to work with UpdatePanel and other ASP.NET AJAX Server controls.

Some of the frequently used properties
EnableCdn – used to specify if the page loads the script reference for Ajax from a CDN or from local machine.
EnablePageMethods – used to specify if static page methods from the aspx page can be called from script or not.
EnablePartialRendering – used to specify if partial rendering is enabled or not that let us update partial web page.

<asp:ScriptManager runat="server" ID="SM1" EnableCdn="true" EnablePageMethods="true" EnablePartialRendering="true" />

EnableHistory – used to maintain the browser history during ASP.NET AJAX post back.

Series Navigation«String extension in ASP.NET AJAXUpdatePanel in ASP.NET Ajax»

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.