Hi to all,

I am using custom validator for validate 10 digit mobile number starts with 9.
I simply put custom validator in my form & I wrote "^9[0-9]{9}$"
but if i put correct mobile number then only it gives me error message.
can anybody tell me what is correct procedure..?

Recommended Answers

All 2 Replies

You have to use RegularExpressionValidator to validate a regular expression.

Thanks! It works!

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.