Hi,
I just changed my project settings to target .NET Framework version 3.5. After running a sample page that uses ScriptManager, RadWindowManager, and an UpdatePanel, I get the following error:
The control with ID 'Singleton' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
I've checked the GAC and both the 1.0 and 3.5 versions of System.Web.Extensions.dll are in there. Also, I've verified that web.config contains the correct BindingRedirect directives:
The code for the sample .aspx page follows. Note that if all of the RadWindow code is commented out but the UpdatePanel is left in, the error doesn't occur. If the RadWindow code is present with or without the UpdatePanel, the error always occurs.
Anything else I might be missing?
I just changed my project settings to target .NET Framework version 3.5. After running a sample page that uses ScriptManager, RadWindowManager, and an UpdatePanel, I get the following error:
The control with ID 'Singleton' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
I've checked the GAC and both the 1.0 and 3.5 versions of System.Web.Extensions.dll are in there. Also, I've verified that web.config contains the correct BindingRedirect directives:
| <runtime> |
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| <dependentAssembly> |
| <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> |
| <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> |
| <dependentAssembly> |
| <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> |
| <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration> |
The code for the sample .aspx page follows. Note that if all of the RadWindow code is commented out but the UpdatePanel is left in, the error doesn't occur. If the RadWindow code is present with or without the UpdatePanel, the error always occurs.
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="calvintestradwindowiframe.aspx.cs" Inherits="Test_calvintestradwindowiframe" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <html> |
| <head> |
| <script language="javascript" type="text/javascript"> |
| var oWnd; |
| function Test(wizardID) |
| { |
| oWnd = $find( '<%= TestPopupWindow.ClientID %>' ); |
| oWnd.setUrl('http://www.yahoo.com'); |
| oWnd.show(); |
| } |
| function TestClientCallBack(radWindow, returnParameters) |
| { |
| } |
| </script> |
| </head> |
| <body> |
| <form name="form1" runat="server"> |
| <telerik:RadWindowManager id="Singleton" runat="server" Skin="Vista"> |
| <windows> |
| <telerik:RadWindow ID="TestPopupWindow" runat="server" Height="300" Width="300" |
| DestroyOnclose="false" |
| Modal="true" |
| VisibleStatusbar="false" |
| VisibleTitlebar = "true" |
| NavigateUrl="" |
| Title = "Test" |
| Behaviors="Close,Move" |
| ClientCallBackFunction="TestClientCallBack" |
| /> |
| </windows> |
| </telerik:RadWindowManager> |
| <a href="javascript:void(0)" onclick="javascript:Test(0)">Test(0)</a> |
| <asp:UpdatePanel ID="TestUpdatePanel" runat="server"> |
| <ContentTemplate> |
| <p>hello</p> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| <p>Test Page</p> |
| </form> |
| </body> |
| </html> |
Anything else I might be missing?