title: Asp.net How to limit number of digits before and after the decimal point in textbox keypress event
body: <p>I have a Gridview with a textbox. How do I limit the number of digits before and after the decimal point in a <strong>textbox keypress event</strong>? I want a maximum of 6 digits before the decimal point and 2 digits after the decimal point.
  How do I do this with javascript/JQuery?</p>