EndForm Method
Collapse the table of content
Expand the table of content

FormExtensions.EndForm Method (HtmlHelper)

 

Renders the closing </form> tag to the response.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public static void EndForm(
	this HtmlHelper htmlHelper
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

This method provides an alternative way to end the form instead of using a using block when you call the BeginForm and BeginForm methods.

Return to top
Show:
© 2016 Microsoft