This question is locked. New answers and comments are not allowed.
I created a template to insert some javascript into my user control:
I created a template with the following:
Sys.Application.add_load(function () {
$create(Company.Controls.REPLACEME, null, null, null, $get('<%=Me.ClientID%>'));
var ctl = $find('<%= Me.ClientID%>');
ctl.setup();
});
This was the output:
I created a template with the following:
Sys.Application.add_load(function () {
$create(Company.Controls.REPLACEME, null, null, null, $get('<%=Me.ClientID%>'));
var ctl = $find('<%= Me.ClientID%>');
ctl.setup();
});
This was the output:
Sys.Application.add_load(function () {
get('<%=Me.ClientID%>')
);
var ctl =
The issue is related to the $create and $find in the template. Any way around this?