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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
Namespace: DotNetNuke.Web.Mvc.HelpersAssembly: 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, string optionLabel, IDictionary<string, Object> htmlAttributes ) |
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), optionLabel As String, htmlAttributes As IDictionary(Of String, Object) ) 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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
- 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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
- 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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
- optionLabel
- Type: System..::..String
paramoptionLabelM: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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
- htmlAttributes
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, Object>)>)>
paramhtmlAttributesM: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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
- 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},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})