Show / Hide Table of Contents

Class HtmlSelectExtensions

Inheritance
object
HtmlSelectExtensions
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 HtmlSelectExtensions

Methods

DropDownList(DnnHtmlHelper, string)

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

DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>)

Declaration
public static MvcHtmlString DropDownList(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
Returns
Type Description
MvcHtmlString

DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, IDictionary<string, object>)

Declaration
public static MvcHtmlString DropDownList(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, object)

Declaration
public static MvcHtmlString DropDownList(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
object htmlAttributes
Returns
Type Description
MvcHtmlString

DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, string)

Declaration
public static MvcHtmlString DropDownList(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, string optionLabel)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
string optionLabel
Returns
Type Description
MvcHtmlString

DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString DropDownList(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, string optionLabel, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
string optionLabel
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

DropDownList(DnnHtmlHelper, string, IEnumerable<SelectListItem>, string, object)

Declaration
public static MvcHtmlString DropDownList(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, string optionLabel, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
string optionLabel
object htmlAttributes
Returns
Type Description
MvcHtmlString

DropDownList(DnnHtmlHelper, string, string)

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

DropDownListFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>)

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

DropDownListFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, IDictionary<string, object>)

Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IEnumerable<SelectListItem> selectList
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

DropDownListFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, object)

Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IEnumerable<SelectListItem> selectList
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

DropDownListFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, string)

Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, string optionLabel)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IEnumerable<SelectListItem> selectList
string optionLabel
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

DropDownListFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, string optionLabel, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IEnumerable<SelectListItem> selectList
string optionLabel
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

DropDownListFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, string, object)

Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, string optionLabel, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IEnumerable<SelectListItem> selectList
string optionLabel
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

EnumDropDownListFor<TModel, TEnum>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TEnum>>)

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

EnumDropDownListFor<TModel, TEnum>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TEnum>>, IDictionary<string, object>)

Declaration
public static MvcHtmlString EnumDropDownListFor<TModel, TEnum>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TEnum>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TEnum>> expression
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TEnum

EnumDropDownListFor<TModel, TEnum>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TEnum>>, object)

Declaration
public static MvcHtmlString EnumDropDownListFor<TModel, TEnum>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TEnum>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TEnum>> expression
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TEnum

EnumDropDownListFor<TModel, TEnum>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TEnum>>, string)

Declaration
public static MvcHtmlString EnumDropDownListFor<TModel, TEnum>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TEnum>> expression, string optionLabel)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TEnum>> expression
string optionLabel
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TEnum

EnumDropDownListFor<TModel, TEnum>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TEnum>>, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString EnumDropDownListFor<TModel, TEnum>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TEnum>> expression, string optionLabel, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TEnum>> expression
string optionLabel
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TEnum

EnumDropDownListFor<TModel, TEnum>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TEnum>>, string, object)

Declaration
public static MvcHtmlString EnumDropDownListFor<TModel, TEnum>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TEnum>> expression, string optionLabel, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TEnum>> expression
string optionLabel
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TEnum

ListBox(DnnHtmlHelper, string)

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

ListBox(DnnHtmlHelper, string, IEnumerable<SelectListItem>)

Declaration
public static MvcHtmlString ListBox(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
Returns
Type Description
MvcHtmlString

ListBox(DnnHtmlHelper, string, IEnumerable<SelectListItem>, IDictionary<string, object>)

Declaration
public static MvcHtmlString ListBox(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

ListBox(DnnHtmlHelper, string, IEnumerable<SelectListItem>, object)

Declaration
public static MvcHtmlString ListBox(this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IEnumerable<SelectListItem> selectList
object htmlAttributes
Returns
Type Description
MvcHtmlString

ListBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>)

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

ListBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, IDictionary<string, object>)

Declaration
public static MvcHtmlString ListBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IEnumerable<SelectListItem> selectList
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

ListBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, object)

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