Hide

YetaWF.ComponentsHTML Package Documentation

Display
Print

YetaWF.Modules.ComponentsHTML.Components.YetaWFView.RenderBeginFormAsync Method

Renders the beginning <form> tag with the specified attributes.

Class: YetaWF.Modules.ComponentsHTML.Components.YetaWFView
Namespace: YetaWF.Modules.ComponentsHTML.Components
Assembly: YetaWF.ComponentsHTML

Syntax

protected Task<string> RenderBeginFormAsync(
    object? HtmlAttributes = null,
    bool SaveReturnUrl = false,
    bool ValidateImmediately = false,
    string? ActionName = null,
    string? ControllerName = null,
    string Method = "post" );

Parameters

HtmlAttributes

The HTML attributes to add to the <form> tag.

SaveReturnUrl

Defines whether the return URL is saved when the form is submitted.

ValidateImmediately

Defines whether client-side validation is immediate (true) or delayed until form submission (false).

ActionName

Overrides the default action name.

ControllerName

Overrides the default controller name.

Method

The method used to submit the form (get/post)

Return Value

Returns the HTML with the generated <form> tag.

See Also YetaWF.Modules.ComponentsHTML.Components.YetaWFView ClassYetaWF.ComponentsHTML PackageYetaWF.Core