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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...AjaxControlToolkit (DNN 6.02) IE said: The PageRequestManager cannot be initialized more than onceAjaxControlToolkit (DNN 6.02) IE said: The PageRequestManager cannot be initialized more than once
Previous
 
Next
New Post
9/20/2012 3:10 AM
 

Hi, I'm using AjaxControlToolkit in a personal module, ok, this works fine.

I added <%@ Register Assembly="AjaxControlToolkit"....%> and <ajaxToolKit:ToolkitScripManager...../> to my Defalut.aspx, and the module works perfectly.

It's works perfectly in all browser, including IE, but...IE show me one error:

Mensaje: Sys.InvalidOperationException: The PageRequestManager cannot be initialized more than once.
Línea: 2
Carácter: 18715
Código: 0
URI: http://localhost/intranet/ScriptResource.axd?d=h36NzNmm8k9NOYeA-TWXQqq3Tk0lSEvj6DKROYZkJd-GoR2I1&t=ffffffffbd2983fc

I been reading about this, and I think that the problem is that DNN use his own scriptmanager, DNN adds this line to Default.aspx

<input type="hidden" name="ScriptManager_TSM" id="ScriptManager_TSM" value="" />

And I think that this is the problems. I  readed about edit DNN proyect and rebuilt...but I can't (and I don't like) do this....some idea??

 Thanks, best regards.



 
New Post
9/25/2012 3:51 AM
 
nothing about this?? :(
 
New Post
9/25/2012 4:24 AM
 
Remove your script manager so you are relying on the Telerik one already in place and check to ensure your module still works.

Bill
 
New Post
9/25/2012 8:54 AM
 
Hi, firstly thanks for your reply :)

Secondly...I didn't understand that you said about Telerik. If I remove my script manager (<ajaxToolKit:ToolkitScripManager...../>) my module doesn't works. The module works, but my ajaxToolkit:Calendar doesn't make nothing. And IE show me a error, and said me that need one scripmanager to work.

Regards and thanks you.
 
New Post
9/25/2012 9:53 AM
 
DNN includes a very good Ajax Calendar from Telerik (TSM = Telerik Script Manager). To use that in your module, do something like this [I have added a space after the < to get the code to show here]

< %@ Register TagPrefix="dnnweb" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>
< div class="dnnFormItem">
< dnn:Label ID="transdatelabel" runat="server" Text="Transaction Date " AssociatedControlID="TransDatePicker" HelpText="Today's date is assigned automatically - you can change it" />
< dnnweb:DnnDatePicker runat="server" CssClass="dnnFormInput" Culture="en-US" ID="TransDatePicker" />


Add a reference to the DotNetNuke. Web.UI.Controls.dll to your project and that will prompt you to add a reference to the Telerik dll (both of these found in the bin folder of your local development dnn installation)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...AjaxControlToolkit (DNN 6.02) IE said: The PageRequestManager cannot be initialized more than onceAjaxControlToolkit (DNN 6.02) IE said: The PageRequestManager cannot be initialized more than once


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