Skip to main content

SelectExtensions

Assembly: ServiceStack.Razor.dll​
View Source​
Declaration
public static class SelectExtensions

Methods​

DropDownList(HtmlHelper, String)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname

DropDownList(HtmlHelper, String, String)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, string optionLabel)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.StringoptionLabel

DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList

DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, Object)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.ObjecthtmlAttributes

DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, String)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, string optionLabel)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.StringoptionLabel

DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, String, Object)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, string optionLabel, object htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.StringoptionLabel
System.ObjecthtmlAttributes

DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, String, IDictionary<String, Object>)​

View Source​
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, string optionLabel, IDictionary<string, object> htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.StringoptionLabel
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

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

View Source​
Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
Type Parameters​
  • TModel
  • TProperty

DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, Object)​

View Source​
Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.ObjecthtmlAttributes
Type Parameters​
  • TModel
  • TProperty

DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, IDictionary<String, Object>)​

View Source​
Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters​
  • TModel
  • TProperty

DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String)​

View Source​
Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, string optionLabel)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.StringoptionLabel
Type Parameters​
  • TModel
  • TProperty

DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String, Object)​

View Source​
Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, string optionLabel, object htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.StringoptionLabel
System.ObjecthtmlAttributes
Type Parameters​
  • TModel
  • TProperty

DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String, IDictionary<String, Object>)​

View Source​
Declaration
public static MvcHtmlString DropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, string optionLabel, IDictionary<string, object> htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.StringoptionLabel
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters​
  • TModel
  • TProperty

ListBox(HtmlHelper, String)​

View Source​
Declaration
public static MvcHtmlString ListBox(this HtmlHelper htmlHelper, string name)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname

ListBox(HtmlHelper, String, IEnumerable<SelectListItem>)​

View Source​
Declaration
public static MvcHtmlString ListBox(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList

ListBox(HtmlHelper, String, IEnumerable<SelectListItem>, Object)​

View Source​
Declaration
public static MvcHtmlString ListBox(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.ObjecthtmlAttributes

ListBox(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>)​

View Source​
Declaration
public static MvcHtmlString ListBox(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

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

View Source​
Declaration
public static MvcHtmlString ListBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
Type Parameters​
  • TModel
  • TProperty

ListBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, Object)​

View Source​
Declaration
public static MvcHtmlString ListBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, object htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.ObjecthtmlAttributes
Type Parameters​
  • TModel
  • TProperty

ListBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, IDictionary<String, Object>)​

View Source​
Declaration
public static MvcHtmlString ListBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem>selectList
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters​
  • TModel
  • TProperty