Table of Contents

Class MasterDataFormTagHelper

Namespace
JJMasterData.Web.TagHelpers
Assembly
JJMasterData.Web.dll
public class MasterDataFormTagHelper : FormTagHelper, ITagHelper, ITagHelperComponent
Inheritance
MasterDataFormTagHelper
Implements
Inherited Members

Constructors

MasterDataFormTagHelper(IHtmlGenerator)

public MasterDataFormTagHelper(IHtmlGenerator generator)

Parameters

generator IHtmlGenerator

Properties

AspMvcAction

[HtmlAttributeName("asp-action")]
[AspMvcAction]
public string AspMvcAction { get; set; }

Property Value

string

AspMvcArea

[HtmlAttributeName("asp-area")]
[AspMvcArea]
public string AspMvcArea { get; set; }

Property Value

string

AspMvcController

[HtmlAttributeName("asp-controller")]
[AspMvcController]
public string AspMvcController { get; set; }

Property Value

string

Methods

Process(TagHelperContext, TagHelperOutput)

Synchronously executes the TagHelper with the given context and output.

public override void Process(TagHelperContext context, TagHelperOutput output)

Parameters

context TagHelperContext

Contains information associated with the current HTML tag.

output TagHelperOutput

A stateful HTML element used to generate an HTML tag.

Remarks

Does nothing if user provides an action attribute and Antiforgery is null or false.

Exceptions

InvalidOperationException

Thrown if action attribute is provided and Action, Controller or Fragment are non-null or if the user provided asp-route-* attributes.