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

Class HtmlEditorExtensions

Represents support for the HTML input element in an application.

Inheritance
System.Object
HtmlEditorExtensions
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlEditorExtensions : object

Methods

| Improve this Doc View Source

Editor(DnnHtmlHelper, String, Object)

Returns an HTML input element for each property in the object that is represented by the expression, using additional view data.

Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the object that contains the properties to display.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

| Improve this Doc View Source

Editor(DnnHtmlHelper, String, String, Object)

Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data.

Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

| Improve this Doc View Source

Editor(DnnHtmlHelper, String, String, String, Object)

Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data.

Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, string htmlFieldName, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

System.String htmlFieldName

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

| Improve this Doc View Source

Editor(DnnHtmlHelper, String, String, String)

Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and HTML field name.

Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, string htmlFieldName)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

System.String htmlFieldName

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

| Improve this Doc View Source

Editor(DnnHtmlHelper, String, String)

Returns an HTML input element for each property in the object that is represented by the expression, using the specified template.

Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

| Improve this Doc View Source

Editor(DnnHtmlHelper, String)

Returns an HTML input element for each property in the object that is represented by the expression.

Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the object that contains the properties to display.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

| Improve this Doc View Source

EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, Object)

Returns an HTML input element for each property in the object that is represented by the expression, using additional view data.

Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the object that contains the properties to display.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, Object)

Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data.

Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String, Object)

Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data.

Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, string htmlFieldName, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

System.String htmlFieldName

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String)

Returns an HTML input element for each property in the object that is represented by the System.Linq.Expressions.Expression expression, using the specified template and HTML field name.

Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, string htmlFieldName)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

System.String htmlFieldName

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String)

Returns an HTML input element for each property in the object that is represented by the System.Linq.Expressions.Expression expression, using the specified template.

Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the object that contains the properties to display.

System.String templateName

The name of the template to use to render the object.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>)

Returns an HTML input element for each property in the object that is represented by the System.Linq.Expressions.Expression expression.

Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the object that contains the properties to display.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the object that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

EditorForModel(DnnHtmlHelper, Object)

Returns an HTML input element for each property in the model, using additional view data.

Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the model.

| Improve this Doc View Source

EditorForModel(DnnHtmlHelper, String, Object)

Returns an HTML input element for each property in the model, using the specified template and additional view data.

Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String templateName

The name of the template to use to render the object.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the model.

| Improve this Doc View Source

EditorForModel(DnnHtmlHelper, String, String, Object)

Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data.

Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName, object additionalViewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String templateName

The name of the template to use to render the object.

System.String htmlFieldName

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

System.Object additionalViewData

An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the model.

| Improve this Doc View Source

EditorForModel(DnnHtmlHelper, String, String)

Returns an HTML input element for each property in the model, using the specified template name and HTML field name.

Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String templateName

The name of the template to use to render the object.

System.String htmlFieldName

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the model and in the named template.

| Improve this Doc View Source

EditorForModel(DnnHtmlHelper, String)

Returns an HTML input element for each property in the model, using the specified template.

Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String templateName

The name of the template to use to render the object.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the model and in the specified template.

| Improve this Doc View Source

EditorForModel(DnnHtmlHelper)

Returns an HTML input element for each property in the model.

Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

Returns
Type Description
MvcHtmlString

An HTML input element for each property in the model.

  • View Source
Back to top by the community, for the community... #DNNCMS