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.0The ScriptManager must appear before any controls that need it.The ScriptManager must appear before any controls that need it.
Previous
 
Next
New Post
8/11/2007 4:35 PM
 
I have placed this bit of code in the Init event:

DotNetNuke.Framework.AJAX.RegisterScriptManager();



and it I get the following error "The control with ID c111 requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it."

If I place the

< ScriptManager ID="ScriptManager1" runat="server" > tag in the ascx file it all works fine.


My first question is how do I register it in the code behind using RegisterScriptManager() tag?
My second question is why should we not use the tags in the ascx file?



Thanks in advance.
 
New Post
8/13/2007 7:24 AM
 

you should be doing this in code:

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

see here for more info: http://adefwebserver.com/DotNetNukeHELP/Misc/Dotnetnuke_AJAX_modulei.htm

You cannot register it with the ScriptManager control, because only one scriptmanager is allowed in the page. If you put two modules in the page that contain scriptmanagers, that will cause an error


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/3/2007 12:03 PM
 

Erik van Ballegoij wrote

you should be doing this in code:

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

see here for more info: http://adefwebserver.com/DotNetNukeHELP/Misc/Dotnetnuke_AJAX_modulei.htm

You cannot register it with the ScriptManager control, because only one scriptmanager is allowed in the page. If you put two modules in the page that contain scriptmanagers, that will cause an error

I use the framework method for register the script manager as suggested, but, sometimes (when i work in edit mode), the application crash and i must restart it from Host Settings.
The logged error is the same, it seem that the script manager disappears from the page without any rason.

 
New Post
9/24/2008 11:15 AM
 

i am having the same issue.  this is my code in page_load:

  If DotNetNuke.Framework.AJAX.IsInstalled Then
                    DotNetNuke.Framework.AJAX.RegisterScriptManager()
                    Dim objScriptManager As ScriptManager = ScriptManager.GetCurrent(Me.Page)
                    Dim objServiceReference As ServiceReference = New ServiceReference
                    objServiceReference.Path = "~\DesktopModules\DealerInventoryDetailPhoto\MRVASlideshow.asmx"
                    objScriptManager.Services.Add(objServiceReference)
                End If

 

it is a ms ajax slideshowextender.  my module passed testing and was installed on a live site with several hundred portals.  it worked fine all day and then in the afternoon it started blowing up ( The control with ID 'slideshowextend1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.) and blew on all portals until the app pool was reset.   it worked fine for several hours and then it happened again.  it worked through the night and then this morning it started erroring about 20 minutes after our daily app restart.  it seems very indiscriminate but once it starts blowing it will continue to do so until we do a restart.

 

it there anyway that the DotNetNuke.Framework.AJAX could fail to install?

 

thanks.

 

 

 
New Post
9/2/2009 4:39 PM
 

Heres all the errors that were shown on the install page as it was processing:

(I've upgraded before on this server without incident)

Upgraded DotNetNuke: Version: 05.01.01
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server
  8/31/2009 7:10:49 PM   Host Alert       Upgraded DotNetNuke: Version: 05.01.00; Warnings: (TRUNC ...
Upgraded DotNetNuke: Version: 05.01.00
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server
  8/31/2009 7:09:37 PM   Host Alert       Upgraded DotNetNuke: Version: 05.00.01; Warnings: (TRUNC ...
Upgraded DotNetNuke: Version: 05.00.01
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server
  8/31/2009 7:09:00 PM   Host Alert       Upgraded DotNetNuke: Version: 05.00.00; Warnings: (TRUNC ...
Upgraded DotNetNuke: Version: 05.00.00
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server
  8/31/2009 7:07:52 PM   Host Alert       Upgraded DotNetNuke: Version: 04.09.01; Warnings: (TRUNC ...
Upgraded DotNetNuke: Version: 04.09.01
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server
  8/31/2009 7:07:16 PM   Host Alert       Upgraded DotNetNuke: Version: 04.09.00; Warnings: (TRUNC ...
Upgraded DotNetNuke: Version: 04.09.00
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server
  8/31/2009 7:06:41 PM   Host Alert       Upgraded DotNetNuke: Version: 04.08.02; Warnings: (TRUNC ...
Upgraded DotNetNuke: Version: 04.08.02
Warnings: (TRUNCATED TO 500 CHARS): System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(Run
Server Name: server

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0The ScriptManager must appear before any controls that need it.The ScriptManager must appear before any controls that need it.


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