IHtmlGenerator IHtmlGenerator IHtmlGenerator Interface

Definition

Contract for a service supporting IHtmlHelper and ITagHelper implementations.

public interface IHtmlGenerator
type IHtmlGenerator = interface
Public Interface IHtmlGenerator
Derived

Properties

IdAttributeDotReplacement IdAttributeDotReplacement IdAttributeDotReplacement

Methods

Encode(Object) Encode(Object) Encode(Object)
Encode(String) Encode(String) Encode(String)
FormatValue(Object, String) FormatValue(Object, String) FormatValue(Object, String)
GenerateActionLink(ViewContext, String, String, String, String, String, String, Object, Object) GenerateActionLink(ViewContext, String, String, String, String, String, String, Object, Object) GenerateActionLink(ViewContext, String, String, String, String, String, String, Object, Object)

Generate a <a> element for a link to an action.

GenerateAntiforgery(ViewContext) GenerateAntiforgery(ViewContext) GenerateAntiforgery(ViewContext)

Generate an <input type="hidden".../> element containing an antiforgery token.

GenerateCheckBox(ViewContext, ModelExplorer, String, Nullable<Boolean>, Object) GenerateCheckBox(ViewContext, ModelExplorer, String, Nullable<Boolean>, Object) GenerateCheckBox(ViewContext, ModelExplorer, String, Nullable<Boolean>, Object)

Generate a <input type="checkbox".../> element.

GenerateForm(ViewContext, String, String, Object, String, Object) GenerateForm(ViewContext, String, String, Object, String, Object) GenerateForm(ViewContext, String, String, Object, String, Object)

Generate a <form> element. When the user submits the form, the action with name actionName will process the request.

GenerateGroupsAndOptions(String, IEnumerable<SelectListItem>) GenerateGroupsAndOptions(String, IEnumerable<SelectListItem>) GenerateGroupsAndOptions(String, IEnumerable<SelectListItem>)

Generates <optgroup> and <option> elements.

GenerateHidden(ViewContext, ModelExplorer, String, Object, Boolean, Object) GenerateHidden(ViewContext, ModelExplorer, String, Object, Boolean, Object) GenerateHidden(ViewContext, ModelExplorer, String, Object, Boolean, Object)
GenerateHiddenForCheckbox(ViewContext, ModelExplorer, String) GenerateHiddenForCheckbox(ViewContext, ModelExplorer, String) GenerateHiddenForCheckbox(ViewContext, ModelExplorer, String)

Generate an additional <input type="hidden".../> for checkboxes. This addresses scenarios where unchecked checkboxes are not sent in the request. Sending a hidden input makes it possible to know that the checkbox was present on the page when the request was submitted.

GenerateLabel(ViewContext, ModelExplorer, String, String, Object) GenerateLabel(ViewContext, ModelExplorer, String, String, Object) GenerateLabel(ViewContext, ModelExplorer, String, String, Object)
GeneratePageForm(ViewContext, String, String, Object, String, String, Object) GeneratePageForm(ViewContext, String, String, Object, String, String, Object) GeneratePageForm(ViewContext, String, String, Object, String, String, Object)

Generate a <form> element. When the user submits the form, the page with name pageName will process the request.

GeneratePageLink(ViewContext, String, String, String, String, String, String, Object, Object) GeneratePageLink(ViewContext, String, String, String, String, String, String, Object, Object) GeneratePageLink(ViewContext, String, String, String, String, String, String, Object, Object)

Generate a <a> element for a link to an action.

GeneratePassword(ViewContext, ModelExplorer, String, Object, Object) GeneratePassword(ViewContext, ModelExplorer, String, Object, Object) GeneratePassword(ViewContext, ModelExplorer, String, Object, Object)
GenerateRadioButton(ViewContext, ModelExplorer, String, Object, Nullable<Boolean>, Object) GenerateRadioButton(ViewContext, ModelExplorer, String, Object, Nullable<Boolean>, Object) GenerateRadioButton(ViewContext, ModelExplorer, String, Object, Nullable<Boolean>, Object)
GenerateRouteForm(ViewContext, String, Object, String, Object) GenerateRouteForm(ViewContext, String, Object, String, Object) GenerateRouteForm(ViewContext, String, Object, String, Object)

Generate a <form> element. The route with name routeName generates the <form>'s action attribute value.

GenerateRouteLink(ViewContext, String, String, String, String, String, Object, Object) GenerateRouteLink(ViewContext, String, String, String, String, String, Object, Object) GenerateRouteLink(ViewContext, String, String, String, String, String, Object, Object)

Generate a <a> element for a link to an action.

GenerateSelect(ViewContext, ModelExplorer, String, String, IEnumerable<SelectListItem>, Boolean, Object) GenerateSelect(ViewContext, ModelExplorer, String, String, IEnumerable<SelectListItem>, Boolean, Object) GenerateSelect(ViewContext, ModelExplorer, String, String, IEnumerable<SelectListItem>, Boolean, Object)

Generate a <select> element for the expression.

GenerateSelect(ViewContext, ModelExplorer, String, String, IEnumerable<SelectListItem>, ICollection<String>, Boolean, Object) GenerateSelect(ViewContext, ModelExplorer, String, String, IEnumerable<SelectListItem>, ICollection<String>, Boolean, Object) GenerateSelect(ViewContext, ModelExplorer, String, String, IEnumerable<SelectListItem>, ICollection<String>, Boolean, Object)

Generate a <select> element for the expression.

GenerateTextArea(ViewContext, ModelExplorer, String, Int32, Int32, Object) GenerateTextArea(ViewContext, ModelExplorer, String, Int32, Int32, Object) GenerateTextArea(ViewContext, ModelExplorer, String, Int32, Int32, Object)
GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object) GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object) GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object)
GenerateValidationMessage(ViewContext, ModelExplorer, String, String, String, Object) GenerateValidationMessage(ViewContext, ModelExplorer, String, String, String, Object) GenerateValidationMessage(ViewContext, ModelExplorer, String, String, String, Object)

Generate a tag element if the viewContext's ModelState contains an error for the expression.

GenerateValidationSummary(ViewContext, Boolean, String, String, Object) GenerateValidationSummary(ViewContext, Boolean, String, String, Object) GenerateValidationSummary(ViewContext, Boolean, String, String, Object)
GetCurrentValues(ViewContext, ModelExplorer, String, Boolean) GetCurrentValues(ViewContext, ModelExplorer, String, Boolean) GetCurrentValues(ViewContext, ModelExplorer, String, Boolean)

Gets the collection of current values for the given expression.

Extension Methods

GenerateForm(IHtmlGenerator, ViewContext, String, String, String, Object, String, Object) GenerateForm(IHtmlGenerator, ViewContext, String, String, String, Object, String, Object) GenerateForm(IHtmlGenerator, ViewContext, String, String, String, Object, String, Object)
GenerateRouteForm(IHtmlGenerator, ViewContext, String, Object, String, String, Object) GenerateRouteForm(IHtmlGenerator, ViewContext, String, Object, String, String, Object) GenerateRouteForm(IHtmlGenerator, ViewContext, String, Object, String, String, Object)

Applies to