Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: ModalPopupExtender and ValidationSummary Confict [27306]

$
0
0
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: Can you please attach sample code to reproduce this issue? This will help to understand the problem and fix the issue.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>