@@ -306,15 +306,24 @@ Sys.Extended.UI.ControlBase = function(element) {
306306 this . _onerror$delegate = Function . createDelegate ( this , this . _onerror ) ;
307307}
308308
309- Sys . Extended . UI . ControlBase . __doPostBack = function ( eventTarget , eventArgument ) {
309+ Sys . Extended . UI . ControlBase . _execOnSubmitCollection = function ( ) {
310310 if ( ! Sys . WebForms . PageRequestManager . getInstance ( ) . get_isInAsyncPostBack ( ) ) {
311311 for ( var i = 0 ; i < Sys . Extended . UI . ControlBase . onsubmitCollection . length ; i ++ ) {
312312 Sys . Extended . UI . ControlBase . onsubmitCollection [ i ] ( ) ;
313313 }
314314 }
315+ }
316+
317+ Sys . Extended . UI . ControlBase . __doPostBack = function ( eventTarget , eventArgument ) {
318+ Sys . Extended . UI . ControlBase . _execOnSubmitCollection ( ) ;
315319 Function . createDelegate ( window , Sys . Extended . UI . ControlBase . __doPostBackSaved ) ( eventTarget , eventArgument ) ;
316320}
317321
322+ Sys . Extended . UI . ControlBase . __doPostBackWithOptions = function ( options ) {
323+ Sys . Extended . UI . ControlBase . _execOnSubmitCollection ( ) ;
324+ Sys . Extended . UI . ControlBase . __doPostBackWithOptionsSaved ( options ) ;
325+ }
326+
318327Sys . Extended . UI . ControlBase . prototype = {
319328 initialize : function ( ) {
320329 Sys . Extended . UI . ControlBase . callBaseMethod ( this , "initialize" ) ;
@@ -328,6 +337,10 @@ Sys.Extended.UI.ControlBase.prototype = {
328337 window . __doPostBack = Sys . Extended . UI . ControlBase . __doPostBack ;
329338 Sys . Extended . UI . ControlBase . onsubmitCollection = new Array ( ) ;
330339 }
340+ if ( ! Sys . Extended . UI . ControlBase . __doPostBackWithOptionsSaved ) {
341+ Sys . Extended . UI . ControlBase . __doPostBackWithOptionsSaved = window . WebForm_DoPostBackWithOptions ;
342+ window . WebForm_DoPostBackWithOptions = Sys . Extended . UI . ControlBase . __doPostBackWithOptions ;
343+ }
331344 Array . add ( Sys . Extended . UI . ControlBase . onsubmitCollection , this . _onsubmit$delegate ) ;
332345 } else {
333346 $addHandler ( document . forms [ 0 ] , "submit" , this . _onsubmit$delegate ) ;
0 commit comments