how can i use a server control (textbox) and on the client, validate that the only characters entered are numeric (0-9) only...max of 10 chars...allow the backspace and tab key????



Recommended Answers

All 3 Replies

Hi- If you wanted to do client side validation, you will need to do AJAX/Javascript. If you want to validate server-side isnumeric(textbox1.text).

Go to for help doing client side validation with ajax. I think Microsoft has some tools for it.

you can do it with validation controls provided by microsoft

use regular expression validator with validation expression="\d{1,10}" for min 1 char and max 10 chars

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.