Stringy – .Net Input Validation Library
- 20 Methods for validating all forms of text input
- Works for Console, WinForms, WPF and ASP.Net Projects
- Source code and Test application included
- Can easily be extended
- Can be used for custom controls
- Written in C# .Net
- 3+ Level Error Checking
- Support via Email (24 hour response time)
-Setup
- Step 1: Create a new Visual Studio Project.
- Step 2: In the "Solution Explorer" panel, right-click "References".
- Step 3: In the "References" dialog, Click "Add Reference".
- Step 4: Go to the "BROWSE" panel on the left and select "Stringy.dll" after locating.
- Step 5: Add "using Stringy;" at the top of your code and begin use.
- SUPPORT: [email protected]
-Documentation
IsValid - Checks if the input is Null, Empty or Spaces.
HasNumbers - Checks if the input IsValid, has any numbers in it or not. Excluding decimals.
IsDecimal - Checks if the input IsValid, HasNumbers and for '.'.
HasDecimal - Checks if the input IsValid, HasNumbers and for '.'.
IsPrice - Checks if the input IsValid, HasNumbers, HasDecimal, '.', '$'.
IsHexColorCode - Checks if the input IsValid, HasNumbers, length and for '#'.
IsDate - Checks if the input IsValid, HasNumbers, and compares to System.Date.
IsNumbers - Checks if the input IsValid, is all numbers or not. Excluding decimals.
IsZipCode - Checks if the input IsValid, IsNumbers and length - to be 5 or 7 numbers long.
IsPhoneNumber - Checks if the input IsValid, HasNumbers, and length (number of numbers). Removes '-','.',' '.
IsIPAddress - Checks if the input IsValid, HasNumbers, length and validates against IPv4 and IPv6. Removes '-','.',' '.
IsSocialSecurityNumber - Checks if the input IsValid, HasNumbers, length and removes all '-', '.', ' ' before validation.
IsLetters - Checks if the input IsValid, both upper and lower case characters accepted.
HasLetters - Checks if the input IsValid, both upper and lower case characters accepted.
IsNumbersOrLetters - Checks if the input IsValid, HasNumbersOrLetters, IsNumbers and/or IsLetters.
IsNumbersAndLetters - Checks if the input IsValid, HasNumbersOrLetters, HasNumbers and HasLetters.
HasNumbersOrLetters - Checks if the input IsValid, HasNumbers and/or HasLetters.
HasNumbersAndLetters - Checks if the input IsValid, HasNumbers and HasLetters.
IsEmailAddress - Checks if the input IsValid, HasNumbersOrLetters, '@' and uses Regular Expressions to verify.
IsURL - Checks if the input IsValid, HasLetters and is proper http protocol format.