Hi Oliver - thanks so much for the response. I'll have to admit the namespace issue has been very confusing for me through these templates. Here is what I have in the js file:
___________________________________
Type.registerNamespace('Healthcomp'); Healthcomp.ViewxEDI = function() { ---- }
. . .
Healthcomp.ViewxEDI.prototype = {---- }
. . .
var myID = dnn.getVar("clientID");
ns = Object.getTypeName(this) + '.' + myID;
Healthcomp.Modules.xEDI.ViewxEDI.' + myID); //resolves to: Healthcomp.Modules.xEDI.ViewxEDI.dnn_ctr424_ViewxEDI
dnn.xmlhttp.callControlMethod('Healthcomp.Modules.xEDI.ViewxEDI.' + myID, 'LoadMyControlById', { clickedMenuID: this.get_clickedMenuID }, this._ctlSuccess, this._ctlFail);
. . .
Healthcomp.ViewxEDI.registerClass('Healthcomp.ViewxEDI', Sys.Component);
___________________________________
Then here is the code behind:
<ControlMethodClass("Healthcomp.Modules.xEDI.ViewxEDI")>
. . .
Descriptor.Type = "Healthcomp.ViewxEDI"
. . .
. . . .
<ControlMethod()> _
Public Sub LoadMyControl()
. . .
______________________________________
One of the things that was confusing to me is that the namespace of the module is different that the js function name and then in the AjaxPortalModuleBase it says:
Dim desc As ScriptComponentDescriptor = New ScriptComponentDescriptor("ClientNamespaceHere")
. . .
Initially, I thought I should change that value, but the compiled templates use that. Actually, I compiled a template and am just adding to that one until I really figured out how it all worked together. The additional properties that I have created are moving between the js file and the codebehind. (Except for the "id" property that is supposed to be set from the AjaxPortalModuleBase) So, based on what I've provided, do you see where I might be going wrong? Hmmm....I hope this is enough information. I can post the full code if that can help. Thanks so much Oliver!!!
Briana