Here we need to use custom key down function to filter the input values.
function IntegerWithNoComma(pFld, pEvent, pKeyCode) {
if (pKeyCode == 188)// 188 is comma
return false;
else
return true;
}
<des:IntegerTextBox runat="server" ID="txt" ShowThousandsSeparator="false" CustomKeyDownFunctionName="IntegerWithNoComma"></des:IntegerTextBox>
function IntegerWithNoComma(pFld, pEvent, pKeyCode) {
if (pKeyCode == 188)// 188 is comma
return false;
else
return true;
}
<des:IntegerTextBox runat="server" ID="txt" ShowThousandsSeparator="false" CustomKeyDownFunctionName="IntegerWithNoComma"></des:IntegerTextBox>
No comments:
Post a Comment