Castle.MonoRail.Framework.Helpers.FormHelper.FilteredTextField C# (CSharp) Метод

FilteredTextField() публичный Метод

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
Результат 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);
		}