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 ExtensionsModulesModulesSupports Partial Rendering--No loading animationSupports Partial Rendering--No loading animation
Previous
 
Next
New Post
10/19/2017 4:23 PM
 

I'm posting out of desperation, please help if able..

I have a small Contact Us module which sends an email. I've enabled "Supports Partial Rendering" in Host->Extensions (I also have it defaulted in the module's manifest file). The partial rendering works: only the module refreshes when submitting an email. 

However, there is no loading animation. 

I've considered adding a custom loading animation, but I'd prefer to keep it consistent with our other modules. There is another module on the same page which correctly displays the loading animation. Also—interestingly enough—the loading animation will correctly display over any messages I add to the Contact Us module (using Skin.AddModuleMessage() from DotNetNuke.UI.Skins).

I've reduced the module to a minimal state, including just a button with a Thread.Sleep() in the click event handler. Any direction would be extremely appreciated.

 


 


Here's the entire View:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="View.ascx.cs" Inherits="Foundation.Portal.Modules.ContactUsForm.View" %>
<div class="contactUsWrapper">
    <div>

        <asp:Button runat="server" ID="btnSend" Text="Send" class="dnnPrimaryAction" OnClick="btnSend_Click" ValidationGroup="vGroup" />
    </div>
</div>

 


 


Here's the code-behind:

 

 

        public ModuleActionCollection ModuleActions
        {

            get
            {

                var actions = new ModuleActionCollection
                    {
                        {
                            GetNextActionID(), Localization.GetString("EditModule", LocalResourceFile), "", "", "",

                            EditUrl(), false, SecurityAccessLevel.Edit, true, false
                        }
                    };

                return actions;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {

            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }

        protected void btnSend_Click(object sender, EventArgs e)
        {
            Thread.Sleep(10000);
            Skin.AddModuleMessage(this, "Complete.", DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.BlueInfo);        }

    }

 

 
New Post
10/19/2017 10:03 PM
 
I still haven't solved the problem, but I've found the issue. When I deploy with Visual Studio, it converts my module directory into an IIS application. When the module is an IIS application, the loading spinner does not appear. If I remove the application, the loading spinner does appear.

However, if I remove the IIS application, the module.css fails to load. It gives the following error message: "Could not load file or assembly 'ClientDependency.Core' or one of its dependencies. The system cannot find the file specified."

If anyone has insight into any part of this issue, I'd really appreciate any help. After days of dealing with it, I'm ready to just implement a javascript solution and give up on digging into DNN. There are no learning resources available as far as I can tell..
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSupports Partial Rendering--No loading animationSupports Partial Rendering--No loading animation


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2018 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out