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