私の質問は簡単ですが、ASP.NetのInputBoxに整数を使用する方法を知っておく必要があります。Asp.net C#InputBoxは数字だけを受け入れる
function numericFilter(txb) {
txb.value = txb.value.replace(/[^\0-9]/ig, "");
}
はあなたがasp:CompareValidator
を使用することができます
<input type="text" onKeyUp="numericFilter(this);" />
これは役に立ちhttps://stackoverflow.com/questions/9732455/how-to-allow-only-integers-in-a-textbox – Lifewithsun
かもしれませんヘルプ男をありがとう!しかし私はすでにそれを見つけました:P –