Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Telerik Control not working on 2.0 in my moduleTelerik Control not working on 2.0 in my module
Previous
 
Next
New Post
8/1/2008 6:16 AM
 

Hi All,

       I have developed a module which uses the telerik controls. It is running fine on the site built on .net 3.5 framework. I use the Telerik.Web.UI.dll 2.0 version for making it to work with sites built on .net 2.0. But i get a very strange error while installing the module on the sites built on .net2.0 framework. The same package works fine sites built on .net 3.5 framework. I get the script manager error as.

A critical error has occurred.
The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

Stack Trace

Method: Telerik.Web.UI.ScriptRegistrar.GetScriptManager
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. ---> System.InvalidOperationException: The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. at Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) at Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

while adding the module to the page. I have registered the script manager on code behind file. I am also attaching the code. The same works fine with sites built on 3.5 framework. I use Telerik 2.0 supported dll, System.web.extension 1.06,System.web.extension.Design 1.06, dll's please help its really urgent please see my code below

 

    Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try

                ' Check whether the Ajax has been installed in the framewrok and register post back controls for excel export links

                If DotNetNuke.Framework.AJAX.IsInstalled Then
                    DotNetNuke.Framework.AJAX.RegisterScriptManager()
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.categorygridexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.skilltypeexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.experienceexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.statusexport)
                    DotNetNuke.Framework.AJAX.RegisterPostBackControl(Me.competencygridexport)
                End If

                If UserId = -1 Then
                    AddCompetency.Visible = False
                    pnlcaAddCatogery.Visible = False
                    AddSkillType.Visible = False
                End If
etc.......

ascx file

<%@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="SYM.Modules.SYM_CompetencyManager.Competency" CodeFile="Competency.ascx.vb" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register Src="~/controls/LabelControl.ascx" TagName="Label" TagPrefix="dnn" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

   <!-- Control to View the main control -->
 
      <!-- Control to display the tabs in the main control -->
             
              <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify"
               MultiPageID="RadMultiPage1" SelectedIndex="0" Width="690px"
               Skin="Telerik">
               <Tabs>
                   <telerik:RadTab id="RadTab1" runat="server" Text="Competencies" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Categories" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Skill Types" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Experiences" ForeColor="Black"  Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Statuses" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
                   <telerik:RadTab runat="server" Text="Options" ForeColor="Black" Font-Size="Small">
                   </telerik:RadTab>
               </Tabs>
             </telerik:RadTabStrip>

etc...........

please help

 

Thanks,

Sandeep

 
New Post
8/1/2008 10:32 AM
 

Sandeep, a number of ScriptManager issues were fixed in DNN 4.8.2.  What version are you using?

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
8/1/2008 12:06 PM
 

Hi,

  I am using 4.8.4.

 

 
New Post
8/1/2008 6:02 PM
 

Try putting the register in Page_Init rather than Page_Load.  Are you using, the ASP.NET controls or the ASP.NET for AJAX controls.  Ever since 4.8.2 i have found that using the controls for AJAX work much better with DNN.

Andrew

 
New Post
8/2/2008 2:38 AM
 

Hi,

   Ok a little debugging i have found that the condition

   If DotNetNuke.Framework.AJAX.IsInstalled Then
                   DotNetNuke.Framework.AJAX.RegisterScriptManager()

End if

is failing and the script manager is not being registered and throwing an error for the sites built on 2.0 and for the sites built on  3.5 it is going inside the loop and registering the scriptmanager and module works fine. both sites are built on 4.4.4 only. why is it so. Why Ajax installed condition is failing

please help

Thanks,

Sandeep

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Telerik Control not working on 2.0 in my moduleTelerik Control not working on 2.0 in my module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out