I am seeing the "Sys.Webforms is undefined" error, and in particular when trying to do "Actions / Edit Album Info", the dialog was not behaving correctly, the Cancel or Save did not work. It was due to some initialization code not called because this error was aborting the JS being loaded.
After some research, I was able to resolve the issue. Where I saw code similar to below...
Code:Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(actionMenuPageLoad);
I would change to..
Code: Sys.Application.add_init(AppInit);
function AppInit(sender) {
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(actionMenuPageLoad);
}
Basically, the AJAX code is not completely initialized yet for some reason for the init code to run. Moving the init code to the AJAX init handler gets around this issue.
I saw this in many of the gs\controls ASCX files, but also in a few CS files.
I would suggest that these places should be changed. What do you think?