.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

In webform validate 10 digit phone number whithout using any validation controls in asp.net

Posted By: Sudipto     Posted Date: December 19, 2012    Points:5   Category :ASP.Net
How could validate a text box in asp.net web form with 10 digit phone number whithout using any validation control but using if condition?

Author: Amit Mehra             
Posted Date: December 19, 2012     Points: 20   


Do you want to use pure javascript or JQuery code? Since you do not want validation controls.

Please "Mark As Answer " if this post help you.
Author: Akhil Raj       [Moderator]      
Posted Date: December 21, 2012     Points: 20   

You can use javascript to avoid round trip

Author: Abdul Ghani             
Posted Date: December 25, 2012     Points: 20   

Online .Net Classes Build professional career in Asp.Net platform,with exclusive Asp.net training in hyderabad on international real time projects in .net and become professional web developer cum programmer in .Net technologies.

Author: Sasi Prabhu             
Posted Date: December 27, 2012     Points: 20   

Either use javascript or else use AjaxToolkitExtender Controls.
If you like to perform validation in server side means go with regular expression.

Refer script http://www.mykeblack.com/scripts/asp/form-validation/check-for-valid-phone-number

Thanks & Regards,
Sasi Prabhu.
Author: Johnny             
Posted Date: January 02, 2013     Points: 20   

Use AjaxToolkitExtender Controls for ur query

Author: Thamilselvan J             
Posted Date: February 20, 2013     Points: 20   

Hello Sudipto, Please follow the below link to get sample code fr this.



Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend