I understand that this has been an issue for some time and I just ran into it. When a ValidationSummary control in inside the modal, you get this error:
Microsoft JScript runtime error: Object expected' at the line(s) ...
This is evidently correctable by adjusting the code:
---------------
[AjaxControlToolkit Solution]\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs
Line 268
Change:
"(function() {{" +
"var fn = function() {{" +
"Sys.Extended.UI.ModalPopupBehavior.invokeViaServer('{0}', {1}); " +
"Sys.Application.remove_load(fn);" +
"}};" +
"Sys.Application.add_load(fn);" +
"}})();",
to:
";(function() {{" +
"var fn = function() {{" +
"Sys.Extended.UI.ModalPopupBehavior.invokeViaServer('{0}', {1}); " +
"Sys.Application.remove_load(fn);" +
"}};" +
"Sys.Application.add_load(fn);" +
"}})();",
-----------------------
I wonder after all this time why this has not been corrected?
Comments: Due to not sufficient information closing this issue.
Microsoft JScript runtime error: Object expected' at the line(s) ...
This is evidently correctable by adjusting the code:
---------------
[AjaxControlToolkit Solution]\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs
Line 268
Change:
"(function() {{" +
"var fn = function() {{" +
"Sys.Extended.UI.ModalPopupBehavior.invokeViaServer('{0}', {1}); " +
"Sys.Application.remove_load(fn);" +
"}};" +
"Sys.Application.add_load(fn);" +
"}})();",
to:
";(function() {{" +
"var fn = function() {{" +
"Sys.Extended.UI.ModalPopupBehavior.invokeViaServer('{0}', {1}); " +
"Sys.Application.remove_load(fn);" +
"}};" +
"Sys.Application.add_load(fn);" +
"}})();",
-----------------------
I wonder after all this time why this has not been corrected?
Comments: Due to not sufficient information closing this issue.