The ScriptManager must appear before any controls that need it

H79 picture H79 · Nov 20, 2012 · Viewed 159.9k times · Source

I have created a new ASP.NET Web Application, and after debugging i got Server Error

The control with ID 'WaitingPopup1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

I'm new with ASP.NET so where schould i install my ScriptManager, in the web.config?

Answer

AMember picture AMember · Nov 20, 2012

The ScriptManager is a control that needs to be added to the page you have created.

Take a look at this Sample AJAX Application.

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