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)

Syntax

public static void EndForm(
    this HtmlHelper htmlHelper
)
public:
[ExtensionAttribute]
static void EndForm(
    HtmlHelper^ htmlHelper
)
static member EndForm : 
        htmlHelper:HtmlHelper -> unit
<ExtensionAttribute>
Public Shared Sub EndForm (
    htmlHelper As HtmlHelper
)

Parameters

Remarks

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

See Also

FormExtensions Class
System.Web.Mvc.Html Namespace

Return to top