Hai
Try ur code for restrict character,and add javascript for allow only one dot like this
<asp:textbox id="txtBandwidth" onkeypress="return isNumberKey(event)" runat="server" xmlns:asp="#unknown"></asp:textbox>
<asp:filteredtextboxextender id="FilteredTextBoxExtender1" runat="server" targetcontrolid="txtBandwidth" xmlns:asp="#unknown">
FilterType="Numbers,Custom" ValidChars="." Enabled="True">
</asp:filteredtextboxextender>
in above code i add onkeypress event for handle allow only one dot in textbox and following is javascript,add javascript code in between header tag like
<script type ="text/javascript" lang ="javascript" >
function isNumberKey(event) {
document.getElementById('txtBandwidth').onkeypress = function (e) {
if (e.keyCode === 46 && this.value.split('.').length === 2) {
return false;
}
}
}
</script>
Best Regards
AravindB