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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAJAX Modal PopUp Extender AJAX Modal PopUp Extender
Previous
 
Next
New Post
7/17/2010 12:43 PM
 
I'm trying to get a modal popup box to work inside of a DNN module that I'm working on. I am using the modal popup from the AJAX toolkit.  I am able to get this to work in a stand alone page built inside of Visual Studio (that is not in a module), but when I implement this same functionality in a module, it does not work... the screen just flickers.  

From what I've read about AJAX functionality in DNN (on Michael Washington's web site) it seems that I need to register the script manager in the code-behind and that will inject the AJAX functionality at load time.  Please correct me if I'm wrong. I've been able to get an update panel to use AJAX functionality and update the time, but am having issues with the modal popup.

This is my code:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DemoControl.ascx.cs" Inherits="DesktopModules_DemoApp_DemoControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ccl" %>

<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>

<asp:Panel ID="popUpPanel" runat="server" CssClass="modalPopup">

<br />

<p>This is content inside the panel....wehrojakadjfkads
fajdkjfakldsjf kadjfad aadfakd ak fjdk fadl fakd s</p>

<p>This is content inside the panel....wehrojakadjfkads
fajdkjfakldsjf kadjfad aadfakd ak fjdk fadl fakd s</p>

<p>This is content inside the panel....wehrojakadjfkads
fajdkjfakldsjf kadjfad aadfakd ak fjdk fadl fakd s</p>

<p>
        <asp:LinkButton ID="OkButton" runat="server">Ok</asp:LinkButton>
        &nbsp;<asp:LinkButton ID="CancelButton" runat="server">Cancel</asp:LinkButton>
</p>

</asp:Panel>

<ccl:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
    BackgroundCssClass="modalBackground" CancelControlID="CancelButton"
    OkControlID="OkButton" PopupControlID="popUpPanel"
    TargetControlID="LinkButton1">
</ccl:ModalPopupExtender>

Then in the code behind my code is:


              public partial class DesktopModules_DemoApp_DemoControl : DotNetNuke.Entities.Modules.PortalModuleBase

 

{

protected void Page_Load(object sender, EventArgs e)

{

if (DotNetNuke.Framework.AJAX.IsInstalled())

{

DotNetNuke.Framework.AJAX.RegisterScriptManager();

}

             }

             }


I am missing something or am doing something incorrectly.  If you have any experience using the modal pop-up extender inside of the AJAX toolkit from Visual Studio, I would be greatly appreciative of any insight or guidance you can provide.

Thanks for your time

Clint

 

 

 

 

 
New Post
8/3/2012 1:42 AM
 
I am getting the exact same issue ..... did you ever get it to work
 
New Post
8/3/2012 6:18 PM
 
the newer versions of the ajaxtoolkit are known to have issues (as microsoft changed the inheritance of the base classes) - see bens comment at http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=21667&PROJID=2 for a workaround

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/6/2012 6:52 AM
 

well thank you

but i have not tried it, because of time constraint i created another view in my module and opened that view in the dnn popup

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAJAX Modal PopUp Extender AJAX Modal PopUp Extender


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