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...Using AJAX ToolkitScriptManager in DNN 5.xUsing AJAX ToolkitScriptManager in DNN 5.x
Previous
 
Next
New Post
6/27/2011 12:55 PM
 
Hi all.
I just tried the last edition of DNN with a last 5/6/2011 edtion of AjaxControlToolkit and it working for me. I tried calendar extender and popupextender.

Calendar works just "out of box".

Popupextender - I put a textbox  and panel. Inside the panel I put radiobuttonlist and button.

Than I extended the texbox with extender. Got an error when click on the button about async postback. Then I replaced the button with a linkbutton and - it works perfect (Win 2003, IIS6, IE 7.0, FF (last edition), ASP.NET 4.0 and VS 2010 express). I didn't applied any workarounds. The only thing that I did I put all my html into the update panel, but I think it will work even without it.

Here is my code:

TargetControlID="TextBox1">

 

 

 


 

 

CommitScript="e.value;" CommitProperty="value" ExtenderControlID="" PopupControlID="MyPan"

 

Position="Bottom" TargetControlID="TextBox2">

 

 

aa

 

bb

 

cc

 

 

 

 

 

 

 

 

Partial Class DesktopModules_MyTest_ucTest

 

Inherits Entities.Modules.PortalModuleBase

 

Protected Sub lnbSave_Click(sender As Object, e As System.EventArgs) Handles lnbSave.Click

 

Me.MyPop.Commit(Me.RadioButtonList1.SelectedValue)

 

Me.RadioButtonList1.ClearSelection()

 

End Sub

 

End Class

I hope it will help us.

 

 
New Post
7/26/2011 12:51 PM
 
Just installed DNN 6.0, installed the same module with ajaxcontroltoolkit, the same version and it doesn't work. Sad:(
 
New Post
1/2/2012 11:29 AM
 

I have been doing a bit of work updating some fairly complex sites to use the AJAX Toolkit v3.5.51116 (Nov 2011) with DotNetNuke 5.X. In doing so, I've noticed that there is one additional step which needs to be carried out and this is the addition of the following line in the code-behind of Default.aspx.

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            HttpContext.Current.Items.Add("System.Web.UI.ScriptManager", True)

Without this line, DNN won't think the ScriptManager has been added meaning DotNetNuke.Framework.AJAX.IsEnabled will return False. This will potentially break any screens which carry out conditional logic based on this property.

In summary therefore, the steps needed to get DNN 5.X to work with the AJAX Toolkit v3.5.51116 are the following:

1. Add the following lines to Default aspx:

<%@ Page Language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.Framework.DefaultPage" CodeFile="Default.aspx.vb" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Common.Controls" Assembly="DotNetNuke" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:literal id="skinDocType" runat="server"></asp:literal>
<html<%= HtmlAttributeList %>>
<head id="Head" runat="server">
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
    <meta content="text/javascript" http-equiv="Content-Script-Type"/>
    <meta content="text/css" http-equiv="Content-Style-Type"/>
    <meta id="MetaRefresh" runat="Server" http-equiv="Refresh" name="Refresh" />
    <meta id="MetaDescription" runat="Server" name="DESCRIPTION" />
    <meta id="MetaKeywords" runat="Server" name="KEYWORDS" />
    <meta id="MetaCopyright" runat="Server" name="COPYRIGHT" />
    <meta id="MetaGenerator" runat="Server" name="GENERATOR" />
    <meta id="MetaAuthor" runat="Server" name="AUTHOR" />
    <meta name="RESOURCE-TYPE" content="DOCUMENT" />
    <meta name="DISTRIBUTION" content="GLOBAL" />
    <meta id="MetaRobots" runat="server" name="ROBOTS" />
    <meta name="REVISIT-AFTER" content="1 DAYS" />
    <meta name="RATING" content="GENERAL" />
    <meta http-equiv="PAGE-ENTER" content="RevealTrans(Duration=0,Transition=1)" />
    <style type="text/css" id="StylePlaceholder" runat="server"></style>
    <asp:placeholder id="CSS" runat="server" />
</head>
<body id="Body" runat="server" >
    <dnn:Form id="Form" runat="server" ENCTYPE="multipart/form-data" >
        <asp:ToolkitScriptManager ID="ScriptManager" runat="server"></asp:ToolkitScriptManager>
        <asp:Label ID="SkinError" runat="server" CssClass="NormalRed" Visible="False"></asp:Label>
        <asp:PlaceHolder ID="SkinPlaceHolder" runat="server" />
        <input id="ScrollTop" runat="server" name="ScrollTop" type="hidden" />
        <input id="__dnnVariable" runat="server" name="__dnnVariable" type="hidden" />
    </dnn:Form>
</body>
</html>

2. Add the following line to Default.aspx.vb:

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            HttpContext.Current.Items.Add("System.Web.UI.ScriptManager", True) 

Note: Following the above changes, there is really no point in any custom code calling DotNetNuke.Framework.AJAX.RegisterScriptManager() as in effect the ScriptManager is being forced into every page anyway as result of the changes above.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Using AJAX ToolkitScriptManager in DNN 5.xUsing AJAX ToolkitScriptManager in DNN 5.x


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