This project is read-only.
More details here: http://codeutil.wordpress.com/2013/05/28/custom-htmlhelper-filteredtextbox/

The project contains MVC Html helper methods for rendering a filtered text box that allows the user to enter only a given set of characters. If the user enters a character outside the allowed range than, that character will be filtered out and will not appear in the text box. The control will allow us to specify six types of filters:
  • AlphabeticCharacter – allows only alphabetic character from a to z and A to Z and space characters,
  • Numbers – allows only numbers,
  • DecimalNumbers – allows numbers and the decimal separator as defined by the current culture info,
  • DecimalNumbersWithGroupSeparator – allows numbers, the decimal separator and the currency group separator as defined by the current culture info,
  • CustomValidCharacters – for this filter type we will define a string that contains all the characters that will be allowed in the text box,
  • CustomInvalidCharacters – for this filter type we will define a string that contains all the characters that aren’t allowed in the text box.

Just to give a famous example, our filtered text box will offer a functionality similar to the FilteredTextBox control contained in the AjaxControlToolkit but the implementation, obviously, has nothing to do with the AjaxControlToolkit.

Last edited May 6, 2014 at 6:24 PM by Mightymada, version 2