C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Validation with decimmal point


Posted Date: 30 Aug 2006      Total Responses: 1

Posted By: Rajat Chowdhury       Member Level: Silver     Points: 2


How can i validate a text box for numeric(decimal point also) value only.Please give the code or validation expression . Fror code vb.net plz......




Responses

Author: Dhyanchandh.A.V    30 Aug 2006Member Level: GoldRating:     Points: 2
Use a CompareValidator
Go the Properties window of the CompareValidator
Change the 'Operator 'property to 'DataTypeCheck'
Change the 'Type' property to Double.
Enter name (of a control to validate) in the ControToValidate Property
Enter no values in ControlToCompare Propery .It should be left blank.
Similarly ValueToCompare Property must also be left bank.
---------------------------------------------------------------------------------------------------
U can also use a RegularExpressionValidator
The ValidationExrpression is [\d.]*


Post Reply
You must Sign In to post a response.
Next : My Question
Previous : required field validator for check box.checked or not.......
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use