2

Closed

ModalPopupExtender and ValidationSummary Confict

description

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?
Closed Feb 11, 2013 at 5:51 PM by Superexpert
Due to not sufficient information closing this issue.

comments

Superexpert wrote Oct 23, 2012 at 5:02 AM

Can you please attach sample code to reproduce this issue? This will help to understand the problem and fix the issue.