FormContext Class

Definition

Encapsulates information that is required in order to validate and process the input data from an HTML form.

public class FormContext
type FormContext = class
Public Class FormContext
Inheritance
FormContext

Constructors

FormContext()

Initializes a new instance of the FormContext class.

Properties

FieldValidators

Gets the field validators for the form.

FormId

Gets or sets the form identifier.

ReplaceValidationSummary

Determines whether client validation errors should be dynamically added to the validation summary.

ValidationSummaryId

Gets or sets the identifier for the validation summary.

Methods

GetJsonValidationMetadata()

Returns a serialized object that contains the form identifier and field-validation values for the form.

GetValidationMetadataForField(String, Boolean)

Returns the validation value for the specified input field and a value that indicates what to do if the validation value is not found.

GetValidationMetadataForField(String)

Returns the validation value for the specified input field.

RenderedField(String, Boolean)

Sets a value that indicates whether the specified field has been rendered in the form.

RenderedField(String)

Returns a value that indicates whether the specified field has been rendered in the form.

Applies to