@@ -178,9 +178,12 @@ function PostBack(obj, ViewState)
178178 var IsWebForms = false ;
179179
180180 // Check Exist WebForms Values
181- if ( HttpResult . length >= 11 )
182- if ( HttpResult . substring ( 0 , 11 ) == "[web-forms]" )
181+ if ( HttpResult . TrimStart ( ) . length >= 11 )
182+ if ( HttpResult . TrimStart ( ) . substring ( 0 , 11 ) == "[web-forms]" )
183+ {
184+ HttpResult = HttpResult . TrimStart ( ) ;
183185 IsWebForms = true ;
186+ }
184187
185188 if ( IsWebForms )
186189 cb_SetWebFormsValues ( RequestName , HttpResult , true ) ;
@@ -345,9 +348,12 @@ function GetBack(FormAction, ViewState)
345348 var IsWebForms = false ;
346349
347350 // Check Exist WebForms Values
348- if ( HttpResult . length >= 11 )
349- if ( HttpResult . substring ( 0 , 11 ) == "[web-forms]" )
351+ if ( HttpResult . TrimStart ( ) . length >= 11 )
352+ if ( HttpResult . TrimStart ( ) . substring ( 0 , 11 ) == "[web-forms]" )
353+ {
354+ HttpResult = HttpResult . TrimStart ( ) ;
350355 IsWebForms = true ;
356+ }
351357
352358 if ( IsWebForms )
353359 cb_SetWebFormsValues ( RequestName , HttpResult , true ) ;
@@ -1630,6 +1636,11 @@ String.prototype.FullTrim = function ()
16301636 return this . trim ( ) . replace ( / ^ \s \n + | \s \n + $ / g, '' ) ;
16311637} ;
16321638
1639+ String . prototype . TrimStart = function ( )
1640+ {
1641+ return this . replace ( / ^ [ \s \n ] + / , '' ) ;
1642+ } ;
1643+
16331644String . prototype . IsInput = function ( )
16341645{
16351646 var TagName = this . toLowerCase ( ) ;
0 commit comments