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!