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); }
}