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

ScriptManager Confusion

8 Answers 779 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 18 Feb 2008, 05:34 PM
Hey guys, I'm hoping you can help clear up my ScriptManager issues.  What I have are pages utilizing the RadControls and now a newer set of pages that are going to use Prometheus.

I realized I was approaching the ScriptManager scenario in the wrong way when I would place one in each of the pages.  I soon figured out that it's best to just place it in the Master Page, especially in my case where all the inherit pages will be utilizing AJAX in some capacity.

Anyway, the problem is that using the ASP.NET ScriptManager seems to work fine with the older RadControls but the newer Prometheus controls bark, saying "control with id blah blah requires a script manager".

Now I guess ideally I would rather use the Prometheus ScriptManager, however then the older controls get upset.  Can someone kindly straighten this out for me?

Thanks.

8 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 2
answered on 18 Feb 2008, 05:40 PM
Ok I goofed.  Some of these pages weren't actually inheriting from the Master Page and that's why I was getting that error.

I guess my only questions is this: if a page has the older RadControls and Prometheus, what ScriptManager should be used?  The built in ASP.NET or Older RadControls or Prometheus?

0
Iana Tsolova
Telerik team
answered on 19 Feb 2008, 01:13 PM
Hi Michael,

There is no problem to use the Prometheus RadAjaxManager in your case. It works with both RadControls and Prometheus RadControl. I've attached a sample here illustrating it. You can have a look at it and tell us if you are doing something different. If the problem still persist please give us more details about your problematic code.

Regards,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ken
Top achievements
Rank 1
answered on 28 Feb 2008, 11:53 PM
I followed the code sample in the ZIP file in this post and I am still experiencing errors.  Here is my error:

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

Here is the relevant page code:

<%
@ Master Language="C#" AutoEventWireup="true" CodeFile="PublicSite.master.cs" Inherits="PublicSite" %>
<%
@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="radW" %>
<%
@ Register Assembly="RadRotator.Net2" Namespace="Telerik.WebControls" TagPrefix="radR" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

...

<Body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<form id="form1" name="form1" runat="server">
<input type='text' style='visibility: hidden' name='oDiscard'>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
<radW:radwindowmanager id="WindowManager1" runat="server">
     <windows>
         
<radW:radwindow id="rwCharity" Behavior="None" runat="server" width="300px" height="300px" Title="Giving Back!" Modal="true" navigateurl="Charity.aspx"></radw:radwindow>
     </windows>
</radW:radwindowmanager>

...



And here is my web.config entries:

<

pages>
     <
controls>
          <
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <
add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
     </
controls>
</
pages>

Can you please help?!?  Thanks!

                                                      Ken

0
Vlad
Telerik team
answered on 29 Feb 2008, 08:46 AM
Hi Ken,

Can you please move the ScriptManager inside the form tag and let us know about the result?

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ken
Top achievements
Rank 1
answered on 29 Feb 2008, 02:51 PM
Sorry - you were looking at one iteration.  I moved the ScriptManager tag back inside the form but it made no difference:

<form id="form1" name="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
0
Ken
Top achievements
Rank 1
answered on 29 Feb 2008, 04:54 PM
I figured out the issue - I was referencing the standard Telerik.Web.UI DLL and not the 3.5 version.  Once I switched to the correct DLL things worked properly.  Thanks!
0
Joseph
Top achievements
Rank 1
answered on 24 Apr 2008, 06:08 PM
how can I get the 3.5 version?  I can't seem to find a link to download the latest dlls

thanks
Joey
0
Konstantin Petkov
Telerik team
answered on 25 Apr 2008, 05:53 AM
Hello Joseph,

There is no separate link for the 3.5 version. When you download/install the new RadControls for ASP.NET AJAX, the 3.5 version will be available in your installation Bin35 folder.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Michael
Top achievements
Rank 2
Answers by
Michael
Top achievements
Rank 2
Iana Tsolova
Telerik team
Ken
Top achievements
Rank 1
Vlad
Telerik team
Joseph
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or