How to make validation for a textbox that accept only comma(,) & digit in asp.net application?

Posted by prateeksaluja20 on Stack Overflow See other posts from Stack Overflow or by prateeksaluja20
Published on 2010-05-22T11:40:37Z Indexed on 2010/05/22 12:00 UTC
Read the original article Hit count: 138

Filed under:
|

I am working on a website. I am using C# 2008. I want to make a text box that accept only numbers & comma(,). for example-919981424199,78848817711,47171111747 or there may be a single number like 919981424199.

I was able to do one thing My text box only containing number by using this Regular Expression validation.in its property->Validation Expression i wrote "[0-9]+". This is working but now my requirement is to send bulk SMS & each number is separated by (,). I tried a lot but not getting the ans. so please help me to sort out this problem.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET