You can transfer the check to the client side with the addition of an attribute EnableClientScript="true". Rollback will not occur, as verification is performed using JS.
, TextChanged, , . ValidationGroup Page.Validate, , Page.IsValid .
Upd
.
JS, :
function IsValid( args ) {
if( args.value.length == 0 ) {
return false;
}
else {
return true;
}
}
Page_Load :
txtQuantity.Attributes[ "onchange" ] = "if ( IsValid(this) == false ) return;";
, .