This is a migrated thread and some comments may be shown as answers.

[Solved] .NET 2.0 to 3.5 migration and ScriptManager issue

2 Answers 207 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark DeMichele
Top achievements
Rank 1
Mark DeMichele asked on 22 Apr 2008, 03:59 PM
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:

<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> 
          
         <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?



2 Answers, 1 is accepted

Sort by
0
Mark DeMichele
Top achievements
Rank 1
answered on 22 Apr 2008, 04:06 PM
Oh, one more thing that I forgot to mention. I'm using the Q3 2007 version of Prometheus.

Thanks in advance for help.
0
Mark DeMichele
Top achievements
Rank 1
answered on 22 Apr 2008, 08:31 PM
Upgrading to the Q1 2008 version seemed to address the problem. Thanks again.
Tags
Window
Asked by
Mark DeMichele
Top achievements
Rank 1
Answers by
Mark DeMichele
Top achievements
Rank 1
Share this question
or