Show / Hide Table of Contents

Class DnnHtmlHelper

Inheritance
object
DnnHtmlHelper
DnnHtmlHelper<TModel>
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public class DnnHtmlHelper

Constructors

DnnHtmlHelper(HtmlHelper)

Declaration
protected DnnHtmlHelper(HtmlHelper htmlHelper)
Parameters
Type Name Description
HtmlHelper htmlHelper

DnnHtmlHelper(ViewContext, IViewDataContainer)

Declaration
public DnnHtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer)
Parameters
Type Name Description
ViewContext viewContext
IViewDataContainer viewDataContainer

DnnHtmlHelper(ViewContext, IViewDataContainer, RouteCollection)

Declaration
public DnnHtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer, RouteCollection routeCollection)
Parameters
Type Name Description
ViewContext viewContext
IViewDataContainer viewDataContainer
RouteCollection routeCollection

Properties

ModuleContext

Declaration
public ModuleInstanceContext ModuleContext { get; set; }
Property Value
Type Description
ModuleInstanceContext

RouteCollection

Declaration
public RouteCollection RouteCollection { get; }
Property Value
Type Description
RouteCollection

ViewBag

Declaration
public dynamic ViewBag { get; }
Property Value
Type Description
dynamic

ViewContext

Declaration
public ViewContext ViewContext { get; }
Property Value
Type Description
ViewContext

ViewData

Declaration
public ViewDataDictionary ViewData { get; }
Property Value
Type Description
ViewDataDictionary

ViewDataContainer

Declaration
public IViewDataContainer ViewDataContainer { get; }
Property Value
Type Description
IViewDataContainer

Methods

AntiForgeryToken()

Declaration
public MvcHtmlString AntiForgeryToken()
Returns
Type Description
MvcHtmlString

AttributeEncode(object)

Declaration
public string AttributeEncode(object value)
Parameters
Type Name Description
object value
Returns
Type Description
string

AttributeEncode(string)

Declaration
public string AttributeEncode(string value)
Parameters
Type Name Description
string value
Returns
Type Description
string

EnableClientValidation()

Declaration
public void EnableClientValidation()

EnableClientValidation(bool)

Declaration
public void EnableClientValidation(bool enabled)
Parameters
Type Name Description
bool enabled

EnableUnobtrusiveJavaScript()

Declaration
public void EnableUnobtrusiveJavaScript()

EnableUnobtrusiveJavaScript(bool)

Declaration
public void EnableUnobtrusiveJavaScript(bool enabled)
Parameters
Type Name Description
bool enabled

Encode(object)

Declaration
public string Encode(object value)
Parameters
Type Name Description
object value
Returns
Type Description
string

Encode(string)

Declaration
public string Encode(string value)
Parameters
Type Name Description
string value
Returns
Type Description
string

FormatValue(object, string)

Declaration
public string FormatValue(object value, string format)
Parameters
Type Name Description
object value
string format
Returns
Type Description
string

GetUnobtrusiveValidationAttributes(string)

Declaration
public IDictionary<string, object> GetUnobtrusiveValidationAttributes(string name)
Parameters
Type Name Description
string name
Returns
Type Description
IDictionary<string, object>

GetUnobtrusiveValidationAttributes(string, ModelMetadata)

Declaration
public IDictionary<string, object> GetUnobtrusiveValidationAttributes(string name, ModelMetadata metadata)
Parameters
Type Name Description
string name
ModelMetadata metadata
Returns
Type Description
IDictionary<string, object>

HttpMethodOverride(string)

Declaration
public MvcHtmlString HttpMethodOverride(string httpVerb)
Parameters
Type Name Description
string httpVerb
Returns
Type Description
MvcHtmlString

HttpMethodOverride(HttpVerbs)

Declaration
public MvcHtmlString HttpMethodOverride(HttpVerbs httpVerb)
Parameters
Type Name Description
HttpVerbs httpVerb
Returns
Type Description
MvcHtmlString

Raw(object)

Declaration
public IHtmlString Raw(object value)
Parameters
Type Name Description
object value
Returns
Type Description
IHtmlString

Raw(string)

Declaration
public IHtmlString Raw(string value)
Parameters
Type Name Description
string value
Returns
Type Description
IHtmlString

Extension Methods

HtmlDisplayExtensions.Display(DnnHtmlHelper, string)
HtmlDisplayExtensions.Display(DnnHtmlHelper, string, object)
HtmlDisplayExtensions.Display(DnnHtmlHelper, string, string)
HtmlDisplayExtensions.Display(DnnHtmlHelper, string, string, object)
HtmlDisplayExtensions.Display(DnnHtmlHelper, string, string, string)
HtmlDisplayExtensions.Display(DnnHtmlHelper, string, string, string, object)
HtmlDisplayExtensions.DisplayForModel(DnnHtmlHelper)
HtmlDisplayExtensions.DisplayForModel(DnnHtmlHelper, object)
HtmlDisplayExtensions.DisplayForModel(DnnHtmlHelper, string)
HtmlDisplayExtensions.DisplayForModel(DnnHtmlHelper, string, object)
HtmlDisplayExtensions.DisplayForModel(DnnHtmlHelper, string, string)
HtmlDisplayExtensions.DisplayForModel(DnnHtmlHelper, string, string, object)
HtmlDisplayNameExtensions.DisplayName(DnnHtmlHelper, string)
HtmlDisplayNameExtensions.DisplayNameForModel(DnnHtmlHelper)
HtmlDisplayTextExtensions.DisplayText(DnnHtmlHelper, string)
HtmlEditorExtensions.Editor(DnnHtmlHelper, string)
HtmlEditorExtensions.Editor(DnnHtmlHelper, string, object)
HtmlEditorExtensions.Editor(DnnHtmlHelper, string, string)
HtmlEditorExtensions.Editor(DnnHtmlHelper, string, string, object)
HtmlEditorExtensions.Editor(DnnHtmlHelper, string, string, string)
HtmlEditorExtensions.Editor(DnnHtmlHelper, string, string, string, object)
HtmlEditorExtensions.EditorForModel(DnnHtmlHelper)
HtmlEditorExtensions.EditorForModel(DnnHtmlHelper, object)
HtmlEditorExtensions.EditorForModel(DnnHtmlHelper, string)
HtmlEditorExtensions.EditorForModel(DnnHtmlHelper, string, object)
HtmlEditorExtensions.EditorForModel(DnnHtmlHelper, string, string)
HtmlEditorExtensions.EditorForModel(DnnHtmlHelper, string, string, object)
HtmlInputExtensions.CheckBox(DnnHtmlHelper, string)
HtmlInputExtensions.CheckBox(DnnHtmlHelper, string, bool)
HtmlInputExtensions.CheckBox(DnnHtmlHelper, string, bool, IDictionary<string, object>)
HtmlInputExtensions.CheckBox(DnnHtmlHelper, string, bool, object)
HtmlInputExtensions.CheckBox(DnnHtmlHelper, string, IDictionary<string, object>)
HtmlInputExtensions.CheckBox(DnnHtmlHelper, string, object)
HtmlInputExtensions.Hidden(DnnHtmlHelper, string)
HtmlInputExtensions.Hidden(DnnHtmlHelper, string, object)
HtmlInputExtensions.Hidden(DnnHtmlHelper, string, object, IDictionary<string, object>)
HtmlInputExtensions.Hidden(DnnHtmlHelper, string, object, object)
HtmlInputExtensions.Password(DnnHtmlHelper, string)
HtmlInputExtensions.Password(DnnHtmlHelper, string, object)
HtmlInputExtensions.Password(DnnHtmlHelper, string, object, IDictionary<string, object>)
HtmlInputExtensions.Password(DnnHtmlHelper, string, object, object)
HtmlInputExtensions.RadioButton(DnnHtmlHelper, string, object)
HtmlInputExtensions.RadioButton(DnnHtmlHelper, string, object, bool)
HtmlInputExtensions.RadioButton(DnnHtmlHelper, string, object, bool, IDictionary<string, object>)
HtmlInputExtensions.RadioButton(DnnHtmlHelper, string, object, bool, object)
HtmlInputExtensions.RadioButton(DnnHtmlHelper, string, object, IDictionary<string, object>)
HtmlInputExtensions.RadioButton(DnnHtmlHelper, string, object, object)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string, object)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string, object, IDictionary<string, object>)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string, object, object)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string, object, string)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string, object, string, IDictionary<string, object>)
HtmlInputExtensions.TextBox(DnnHtmlHelper, string, object, string, object)
HtmlLabelExtensions.Label(DnnHtmlHelper, string)
HtmlLabelExtensions.Label(DnnHtmlHelper, string, IDictionary<string, object>)
HtmlLabelExtensions.Label(DnnHtmlHelper, string, object)
HtmlLabelExtensions.Label(DnnHtmlHelper, string, string)
HtmlLabelExtensions.Label(DnnHtmlHelper, string, string, IDictionary<string, object>)
HtmlLabelExtensions.Label(DnnHtmlHelper, string, string, object)
HtmlLabelExtensions.LabelForModel(DnnHtmlHelper)
HtmlLabelExtensions.LabelForModel(DnnHtmlHelper, IDictionary<string, object>)
HtmlLabelExtensions.LabelForModel(DnnHtmlHelper, object)
HtmlLabelExtensions.LabelForModel(DnnHtmlHelper, string)
HtmlLabelExtensions.LabelForModel(DnnHtmlHelper, string, IDictionary<string, object>)
HtmlLabelExtensions.LabelForModel(DnnHtmlHelper, string, object)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, object)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, object, object)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, string)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, string, object, object)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, string, string, string, string, object, object)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, string, string, string, string, RouteValueDictionary, IDictionary<string, object>)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, string, RouteValueDictionary, IDictionary<string, object>)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, RouteValueDictionary)
HtmlLinkExtensions.ActionLink(DnnHtmlHelper, string, string, RouteValueDictionary, IDictionary<string, object>)
HtmlNameExtensions.Id(DnnHtmlHelper, string)
HtmlNameExtensions.IdForModel(DnnHtmlHelper)
HtmlNameExtensions.Name(DnnHtmlHelper, string)
HtmlNameExtensions.NameForModel(DnnHtmlHelper)
HtmlPartialExtensions.Partial(DnnHtmlHelper, string)
HtmlPartialExtensions.Partial(DnnHtmlHelper, string, object)
HtmlPartialExtensions.Partial(DnnHtmlHelper, string, object, ViewDataDictionary)
HtmlPartialExtensions.Partial(DnnHtmlHelper, string, ViewDataDictionary)
HtmlRenderPartialExtensions.RenderPartial(DnnHtmlHelper, object, string)
HtmlRenderPartialExtensions.RenderPartial(DnnHtmlHelper, string)
HtmlRenderPartialExtensions.RenderPartial(DnnHtmlHelper, string, object, ViewDataDictionary)
HtmlRenderPartialExtensions.RenderPartial(DnnHtmlHelper, string, ViewDataDictionary)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, IDictionary<string, object>)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, object)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, string)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, string, IDictionary<string, object>)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, string, object)
HtmlSelectExtensions.DropDownList(DnnHtmlHelper, string, string)
HtmlSelectExtensions.ListBox(DnnHtmlHelper, string)
HtmlSelectExtensions.ListBox(DnnHtmlHelper, string, IEnumerable<SelectListItem>)
HtmlSelectExtensions.ListBox(DnnHtmlHelper, string, IEnumerable<SelectListItem>, IDictionary<string, object>)
HtmlSelectExtensions.ListBox(DnnHtmlHelper, string, IEnumerable<SelectListItem>, object)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, IDictionary<string, object>)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, object)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, string)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, string, IDictionary<string, object>)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, string, int, int, IDictionary<string, object>)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, string, int, int, object)
HtmlTextAreaExtensions.TextArea(DnnHtmlHelper, string, string, object)
HtmlValidationExtensions.Validate(DnnHtmlHelper, string)
HtmlValidationExtensions.ValidationMessage(DnnHtmlHelper, string)
HtmlValidationExtensions.ValidationMessage(DnnHtmlHelper, string, IDictionary<string, object>)
HtmlValidationExtensions.ValidationMessage(DnnHtmlHelper, string, object)
HtmlValidationExtensions.ValidationMessage(DnnHtmlHelper, string, string)
HtmlValidationExtensions.ValidationMessage(DnnHtmlHelper, string, string, IDictionary<string, object>)
HtmlValidationExtensions.ValidationMessage(DnnHtmlHelper, string, string, object)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, bool)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, bool, string)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, bool, string, IDictionary<string, object>)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, bool, string, object)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, string)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, string, IDictionary<string, object>)
HtmlValidationExtensions.ValidationSummary(DnnHtmlHelper, string, object)
HtmlValueExtensions.Value(DnnHtmlHelper, string)
HtmlValueExtensions.Value(DnnHtmlHelper, string, string)
HtmlValueExtensions.ValueForModel(DnnHtmlHelper)
HtmlValueExtensions.ValueForModel(DnnHtmlHelper, string)
JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS