So I finally figured out how to get javascript functions to work in a custom module, but they stop working as soon as I do anything to cause a postback refresh.
The module I have was set to allow partial updates in the module definition.
But this also emptied my textboxes that filled the javascript function, which is not desired.
So I need an update panel in the module instead of around the whole module. As best I can find, the proper code for that is as follows:
DotNetNuke.Framework.AJAX.RegisterScriptManager();
DotNetNuke.Framework.AJAX.WrapUpdatePanelControl(this.CONTROLNAME, true);
The control I'm attempting to wrap is a GridView, and I want it to trigger the panel when the gridview is being sorted... the closest I've come is this line, but it doesn't cause the update panel postback to ever be triggered - instead, the entire page refreshes.
DotNetNuke.Framework.AJAX.RegisterPostBackControl(this.CONTROLNAME);
So how do I make the Sort action of a GridView be the postback trigger for an update panel in dnn?
Thanks again........................................
EDIT:
I've also tried going through each control in the GridView and registering them separately, but that also doesn't work.
foreach (Control objControl in this.CONTROLNAME.Controls)
{
DotNetNuke.Framework.AJAX.RegisterPostBackControl(objControl);
}