Castle.MonoRail.Framework.Helpers.FormHelper.FilteredTextField C# (CSharp) Method

FilteredTextField() public method

Generates an input text element with a javascript that prevents the chars listed in the forbid attribute from being entered.
You must invoke FormHelper.InstallScripts before using it.
public FilteredTextField ( string target, IDictionary attributes ) : string
target string The object to get the value from and to be based on to create the element name.
attributes IDictionary Attributes for the FormHelper method and for the html element it generates
return string
		public string FilteredTextField(string target, IDictionary attributes)
		{
			target = RewriteTargetIfWithinObjectScope(target);

			object value = ObtainValue(target);

			attributes = attributes != null ? attributes : new Hashtable();

			ApplyFilterOptions(attributes);
			ApplyValidation(InputElementType.Text, target, ref attributes);

			return CreateInputElement("text", target, value, attributes);
		}