Show / Hide Table of Contents

Class HtmlNameExtensions

Inheritance
object
HtmlNameExtensions
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 static class HtmlNameExtensions

Methods

Id(DnnHtmlHelper, string)

Declaration
public static MvcHtmlString Id(this DnnHtmlHelper html, string name)
Parameters
Type Name Description
DnnHtmlHelper html
string name
Returns
Type Description
MvcHtmlString

IdForModel(DnnHtmlHelper)

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

IdFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

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

Name(DnnHtmlHelper, string)

Declaration
public static MvcHtmlString Name(this DnnHtmlHelper html, string name)
Parameters
Type Name Description
DnnHtmlHelper html
string name
Returns
Type Description
MvcHtmlString

NameForModel(DnnHtmlHelper)

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

NameFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

Declaration
public static MvcHtmlString NameFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty
Back to top by the community, for the community... #DNNCMS