• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class DnnHtmlHelper

Inheritance
System.Object
DnnHtmlHelper
DnnHtmlHelper<TModel>
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public class DnnHtmlHelper : object

Constructors

| Improve this Doc View Source

DnnHtmlHelper(HtmlHelper)

Initializes a new instance of the DnnHtmlHelper class.

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

The HtmlHelper to wrap.

| Improve this Doc View Source

DnnHtmlHelper(ViewContext, IViewDataContainer, RouteCollection)

Initializes a new instance of the DnnHtmlHelper class.

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

The view context.

IViewDataContainer viewDataContainer

The ViewData container.

RouteCollection routeCollection

The route collection.

| Improve this Doc View Source

DnnHtmlHelper(ViewContext, IViewDataContainer)

Initializes a new instance of the DnnHtmlHelper class.

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

The view context.

IViewDataContainer viewDataContainer

The ViewData container.

Properties

| Improve this Doc View Source

ModuleContext

Declaration
public ModuleInstanceContext ModuleContext { get; set; }
Property Value
Type Description
ModuleInstanceContext
| Improve this Doc View Source

RouteCollection

Declaration
public RouteCollection RouteCollection { get; }
Property Value
Type Description
RouteCollection
| Improve this Doc View Source

ViewBag

Declaration
public dynamic ViewBag { get; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

ViewContext

Declaration
public ViewContext ViewContext { get; }
Property Value
Type Description
ViewContext
| Improve this Doc View Source

ViewData

Declaration
public ViewDataDictionary ViewData { get; }
Property Value
Type Description
ViewDataDictionary
| Improve this Doc View Source

ViewDataContainer

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

Methods

| Improve this Doc View Source

AntiForgeryToken()

Declaration
public MvcHtmlString AntiForgeryToken()
Returns
Type Description
MvcHtmlString
| Improve this Doc View Source

AttributeEncode(Object)

Declaration
public string AttributeEncode(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.String
| Improve this Doc View Source

AttributeEncode(String)

Declaration
public string AttributeEncode(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
System.String
| Improve this Doc View Source

EnableClientValidation()

Declaration
public void EnableClientValidation()
| Improve this Doc View Source

EnableClientValidation(Boolean)

Declaration
public void EnableClientValidation(bool enabled)
Parameters
Type Name Description
System.Boolean enabled
| Improve this Doc View Source

EnableUnobtrusiveJavaScript()

Declaration
public void EnableUnobtrusiveJavaScript()
| Improve this Doc View Source

EnableUnobtrusiveJavaScript(Boolean)

Declaration
public void EnableUnobtrusiveJavaScript(bool enabled)
Parameters
Type Name Description
System.Boolean enabled
| Improve this Doc View Source

Encode(Object)

Declaration
public string Encode(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.String
| Improve this Doc View Source

Encode(String)

Declaration
public string Encode(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
System.String
| Improve this Doc View Source

FormatValue(Object, String)

Declaration
public string FormatValue(object value, string format)
Parameters
Type Name Description
System.Object value
System.String format
Returns
Type Description
System.String
| Improve this Doc View Source

GetUnobtrusiveValidationAttributes(String, ModelMetadata)

Declaration
public IDictionary<string, object> GetUnobtrusiveValidationAttributes(string name, ModelMetadata metadata)
Parameters
Type Name Description
System.String name
ModelMetadata metadata
Returns
Type Description
IDictionary<System.String, System.Object>
| Improve this Doc View Source

GetUnobtrusiveValidationAttributes(String)

Declaration
public IDictionary<string, object> GetUnobtrusiveValidationAttributes(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
IDictionary<System.String, System.Object>
| Improve this Doc View Source

HttpMethodOverride(HttpVerbs)

Declaration
public MvcHtmlString HttpMethodOverride(HttpVerbs httpVerb)
Parameters
Type Name Description
HttpVerbs httpVerb
Returns
Type Description
MvcHtmlString
| Improve this Doc View Source

HttpMethodOverride(String)

Declaration
public MvcHtmlString HttpMethodOverride(string httpVerb)
Parameters
Type Name Description
System.String httpVerb
Returns
Type Description
MvcHtmlString
| Improve this Doc View Source

Raw(Object)

Declaration
public IHtmlString Raw(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
IHtmlString
| Improve this Doc View Source

Raw(String)

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

Extension Methods

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