I am working on an ASP.net Ajax custom control, I have tried to derive from ScriptControl and a I also modified my code to implement the IScriptControl interface and do the nessecary wiring in the PreRender and Render methods.
The frameworks spits out a call to $create:
Sys.Application.add_init(function() {
$create(MyControl.DynamicFormAjax,
{"allowMoveRows":true,"isEditMode":true},
null, null,$get("ctl00_body_dynaForm"));
The control is initialized and I draw itself during the initialize routine.
The issue I am having is that my page is then unable to get a reference to the Component (I can get the dom element just fine). I have tried to use $find("dynaForm") but it returns null.
I have also looked at Sys.Application.getComponents() and the only component I see is the Ajax Toolkit's Modal Popup that is also on this same page.
Thanks for any help!