I am new to asp.net. I want to know that how to put client validation on .aspx file?
Like; value in text box is numeric or not, you must have to enter the value in text box and so on. Please, help me for this issue.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijay YadavPosted Mar 2, 2011, 2:33 AM
Vijay YadavPosted Mar 2, 2011, 5:18 AM
yes and thanks to you for providing the code, it helps everyone here.
Suthish NairPosted Mar 2, 2011, 5:11 AM
Vijay YadavPosted Mar 2, 2011, 4:50 AM
For backspace and number, you can use this:
isNumeric = (keyCode >= 48 && keyCode <= 57 ) || keyCode == 8;
Sahil JaniPosted Mar 2, 2011, 3:46 AM
Sahil JaniPosted Mar 2, 2011, 2:25 AM
Krishna GaradPosted Mar 2, 2011, 2:18 AM
One more article is this for your requirment check out
http://www.c-sharpcorner.com/UploadFile/purankaushal/103222006013805AM/1.aspx
Sahil JaniPosted Mar 2, 2011, 2:13 AM
Krishna GaradPosted Mar 2, 2011, 2:07 AM
http://www.c-sharpcorner.com/UploadFile/puranindia/ValidationControlsASPNET09232009023348AM/ValidationControlsASPNET.aspx