summaryM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})

Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc (in DotNetNuke.Web.Mvc.dll)

Syntax

C#
public static MvcHtmlString DropDownListFor<TModel, TProperty>(
	this DnnHtmlHelper<TModel> html,
	Expression<Func<TModel, TProperty>> expression,
	IEnumerable<SelectListItem> selectList
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function DropDownListFor(Of TModel, TProperty) ( 
	html As DnnHtmlHelper(Of TModel),
	expression As Expression(Of Func(Of TModel, TProperty)),
	selectList As IEnumerable(Of SelectListItem)
) As MvcHtmlString

Parameters

html
Type: DotNetNuke.Web.Mvc.Helpers..::..DnnHtmlHelper<(Of <(<'TModel>)>)>
paramhtmlM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})
expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TModel, TProperty>)>)>>)>)>
paramexpressionM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})
selectList
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'SelectListItem>)>)>
paramselectListM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})

Type Parameters

TModel
typeparamTModelM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})
TProperty
typeparamTPropertyM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})

Return Value

returnsM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem})

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DnnHtmlHelper<(Of <(<'TModel>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also