Hello,
in a module of mine I have a DNN aspx page (class inheriting from CDefault) I use to perform some tasks. I now need to add some updatepanels to this page, thus need to enable ajax for it.
I usually use such code to register the scriptmanager:
If (DotNetNuke.Framework.AJAX.IsInstalled) Then
DotNetNuke.Framework.AJAX.RegisterScriptManager()
End If
...but this does not appear to work in this scenario: even if I put this in my page_init or page_load, I still get an exception because the scriptmanager is missing.
I tried manually adding an asp:scriptmanager to the page:
<asp:ScriptManager runat="server"></asp:ScriptManager>
and with this I don't get the error anymore, but:
- if I leave the above call to register DNN scm I get no errors, while I'd expect it to tell me there are two scm
- my updatepanels do not work, like they're not connected somehow to the scriptmanager: is this possible?
Is it possible to use ajax in a DNN aspx page? What's the correct way to do this?
Thanks for any help,
al.