articles

Home / DeveloperSection / Articles / Ajax Toolkit ScriptManager Control in ASP.Net

Ajax Toolkit ScriptManager Control in ASP.Net

Anonymous User16438 06-Dec-2010

ScriptManager control is the parent control that needs to be there on every page wherever we are trying to use ASP.NET AJAX controls. ScriptManager control manages client script for AJAX enabled ASP.NET pages. This control enables client script to use the type system extensions and support features for partial page rendering, web servicecalls etc.

Syntax:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

ScriptManager properties:

There are some important properties in ScriptManager are:

AllowCustomErrorsRedirect

Gets or sets a value that determines whether custom errors section of the web.config file is used during error.

AsyncPostBackErrorMessage

Gets or sets the error message that is sent to the client when an unhandled server exception occurs during an asynchronous postback.

AsyncPostBackTimeout

Gets or sets the time in seconds before asynchronous postback time if no response is received.

ClientID

Gets the server control identifier generated by ASP.NET (The id for this control that is rendered on the page)

EnablePageMethods

Gets or sets whether public static page methods in asp.net page can be called from client script.

EnableViewState

Gets or sets a value that indicates whether server control persists its Viewstate and the Viewstate of its child control if any.

IsInAsyncPostBack

Gets or sets a value that indicates whether the current postback is being executed in partial rendering mode.

 

 

 


Updated 15-Aug-2019
I am a content writter !

Leave Comment

Comments

Liked By