summaryM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownList(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,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 DropDownList( this DnnHtmlHelper html, string name, IEnumerable<SelectListItem> selectList, string optionLabel, IDictionary<string, Object> htmlAttributes ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function DropDownList ( html As DnnHtmlHelper, name As String, selectList As IEnumerable(Of SelectListItem), optionLabel As String, htmlAttributes As IDictionary(Of String, Object) ) As MvcHtmlString |
Parameters
- html
- Type: DotNetNuke.Web.Mvc.Helpers..::..DnnHtmlHelper
paramhtmlM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownList(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})
- name
- Type: System..::..String
paramnameM:DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownList(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,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.DropDownList(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,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.DropDownList(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,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.DropDownList(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.Collections.Generic.IEnumerable{System.Web.Mvc.SelectListItem},System.String,System.Collections.Generic.IDictionary{System.String,System.Object})