---
title: "Ajax Toolkit ScriptManager Control in ASP.Net"  
description: "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 co"  
author: "Anonymous User"  
published: 2010-12-06  
updated: 2019-08-15  
canonical: https://www.mindstick.com/articles/250/ajax-toolkit-scriptmanager-control-in-asp-dot-net  
category: "ajax"  
tags: ["ajax"]  
reading_time: 3 minutes  

---

# Ajax Toolkit ScriptManager Control in ASP.Net

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](https://www.mindstick.com/articles/12362/is-ajax-cart-extensions-necessary-for-e-commerce-websites) and support features for partial page *rendering*, *[web service](https://www.mindstick.com/articles/45/web-services-in-asp-dot-net)* *calls* etc.\

## Syntax:

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

**ScriptManager [properties](https://yourviews.mindstick.com/view/81845/now-it-s-possible-to-predict-properties-of-any-molecule):**

There are some important properties in ScriptManager are:

| \| AllowCustomErrorsRedirect \| Gets or sets a value that determines whether custom errors section of the [web.config](https://www.mindstick.com/forum/183/web-config-file) file is used during error. \| \| --- \| --- \| \| AsyncPostBackErrorMessage \| Gets or sets the [error message](https://www.mindstick.com/forum/23174/error-message-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration) that is sent to the client when an unhandled server [exception occurs](https://www.mindstick.com/forum/159341/how-to-use-try-and-catch-in-java-for-exception-handling-and-what-happens-when-an-exception-occurs) during an [asynchronous](https://www.mindstick.com/blog/178/synchronous-and-asynchronous-command-execution-in-c-sharp-dot-net) 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](https://www.mindstick.com/interview/734/what-does-the-enableviewstate-property-signify) \| Gets or sets a value that indicates whether server control persists its Viewstate and the Viewstate of its [child control](https://www.mindstick.com/forum/249/finding-child-control-in-wpf) if any. \| \| IsInAsyncPostBack \| Gets or sets a value that indicates whether the current postback is being executed in partial rendering mode. \| |  |
| --- | --- |
| AllowCustomErrorsRedirect | Gets or sets a value that determines whether custom errors section of the [web.config](https://www.mindstick.com/forum/183/web-config-file) file is used during error. |
| AsyncPostBackErrorMessage | Gets or sets the [error message](https://www.mindstick.com/forum/23174/error-message-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration) that is sent to the client when an unhandled server [exception occurs](https://www.mindstick.com/forum/159341/how-to-use-try-and-catch-in-java-for-exception-handling-and-what-happens-when-an-exception-occurs) during an [asynchronous](https://www.mindstick.com/blog/178/synchronous-and-asynchronous-command-execution-in-c-sharp-dot-net) 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](https://www.mindstick.com/interview/734/what-does-the-enableviewstate-property-signify) | Gets or sets a value that indicates whether server control persists its Viewstate and the Viewstate of its [child control](https://www.mindstick.com/forum/249/finding-child-control-in-wpf) if any. |
| IsInAsyncPostBack | Gets or sets a value that indicates whether the current postback is being executed in partial rendering mode. |

---

Original Source: https://www.mindstick.com/articles/250/ajax-toolkit-scriptmanager-control-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
