It appears the problem is still there. Here is the code that is getting rendered to the browser. Keep in mind that the textbox referenced in on view #2 and this error is getting called when a dropdown on view #1 triggers a callback. The entire view is inside of an update panel. And the specific error is: 'Sys.Application.findObject(...)' is null or not an object.
For now I am getting around it by changing the source code. Line 40 of TextboxWatermarkExtender.cs (OnLoad override).
// Rendered Code
function WebForm_OnSubmit() {
Sys.Application.findObject('_ctl00_ContentPlaceHolder1_TextBox1')._onSubmit();if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
// Modified Code
string script = string.Format(CultureInfo.InvariantCulture, "if ( Sys.Application.findObject('{0}') != null ) Sys.Application.findObject('{0}')._onSubmit();", textBoxWatermarkProperties.ID);
Thanks for your input on this, and great job!
-David Martin