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

HiddenField() public method

Generates a hidden form element.

The value is extracted from the target (if available)

public HiddenField ( string target ) : string
target string The object to get the value from and to be based on to create the element name.
return string
		public string HiddenField(string target)
		{
			target = RewriteTargetIfWithinObjectScope(target);

			object value = ObtainValue(target);

			return CreateInputElement("hidden", target, value, null);
		}

Same methods

FormHelper::HiddenField ( string target, IDictionary attributes ) : string
FormHelper::HiddenField ( string target, object value ) : string
FormHelper::HiddenField ( string target, object value, IDictionary attributes ) : string