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 ExtensionsModulesModulesOnly Update the Module not entire page?Only Update the Module not entire page?
Previous
 
Next
New Post
6/27/2011 2:25 PM
 

I am new to DNN module development but not to development in general and have run into what seems to be a DNN specific issue.

I am creating a module that is made up of the following:

<asp:Timer ID="Timer1" runat="server" Interval="1000 OnTick="OnTick_Event" EnableViewState="False"></asp:Timer>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" Visible="True">

     <Triggers>

        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />

    </Triggers>

    <ContentTemplate>

         <asp:Literal ID="Literal1" runat="server" Mode="PassThrough" EnableViewState="true"></asp:Literal>

    </ContentTemplate>

</asp:UpdatePanel>

The function OnTick_Event reads in an html file that may be the same or may have changed and assigns it to the Literal1 control for control to render on the page.

The problem is that the rendering causes the entire page to render and not just the control.

I have tried putting in a ScriptManager to set EnablePartialRendering to true, but that crashes DNN as DNN already has a ScriptManager inserted into each page.

I have tried seeing what the EnablePartialRendering status was on Init, and it seems to be set to true!

So why does the update of the Literal1 control cause the whole page to render? How can I stop this? Is there some DNN setting?

The problem is so bad that with the module on a page I cannot add any other modules as the DNN drop down menus constantly reset.  Any help you could provide would be most appreciated.

Thanks!

 
New Post
6/28/2011 3:56 PM
 
If you go to Host | Extensions menu and then edit your module. For the control you wish to have partial rendering enabled, edit the control, and then make sure "Supports Partial Rendering" is checked.
 
New Post
6/28/2011 4:15 PM
 
Try adding this to your page load event

If DotNetNuke.Framework.AJAX.IsInstalled Then
DotNetNuke.Framework.AJAX.RegisterScriptManager()
End If



Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
6/28/2011 4:25 PM
 
Patrick Santry wrote:
If you go to Host | Extensions menu and then edit your module. For the control you wish to have partial rendering enabled, edit the control, and then make sure "Supports Partial Rendering" is checked.

 
Under DNN 05.06.00 (459) the Supports Partial Rendering setting is not available for the extensions.  

 
New Post
6/28/2011 6:08 PM
 
Robert Harriman wrote:
Try adding this to your page load event

If DotNetNuke.Framework.AJAX.IsInstalled Then
DotNetNuke.Framework.AJAX.RegisterScriptManager()
End If


 
I have and it doesn't work either.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesOnly Update the Module not entire page?Only Update the Module not entire page?


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