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

FormTag() public method

Creates a form tag based on the parameters.

Javascript validation can also be bound to the form and|or elements nested as long as the helper is able to reach the Type of the object used on your view code

The action attribute generation will use UrlHelper

The parameters are used to build a url and also to form the tag. For notes on the url see DefaultUrlBuilder.BuildUrl(UrlInfo,IDictionary). The other parameters supported follows noaction boolean. Disables the generation of an action method string. The http method to use. Defaults to post id string. The form id. More parameters can be accepted depending on the form validation strategy you are using (if any).
public FormTag ( IDictionary parameters ) : string
parameters IDictionary The parameters for the tag or for action and form validation generation.
return string
		public string FormTag(IDictionary parameters)
		{
			string url = null;

			// Creates action attribute
			if (CommonUtils.ObtainEntryAndRemove(parameters, "noaction", "false") == "false")
			{
				url = UrlHelper.For(parameters);
			}

			return FormTag(url, parameters);
		}

Same methods

FormHelper::FormTag ( string url, IDictionary parameters ) : string