ShareThis

Wednesday, June 20, 2012

[ASP] FIX - The control with ID requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.


Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: The control with ID 'RadTextBox1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.





The simple fix to this is to do as it says: add in a ScriptManager before the given control ID.


E.x. (you can copy this directly in to your code):



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

0 comments:

Post a Comment