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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
DropDownList(HtmlHelper, String, String)
View Source
Declaration
public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, string optionLabel)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.String | optionLabel |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.Object | htmlAttributes |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.String | optionLabel |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.String | optionLabel |
System.Object | htmlAttributes |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.String | optionLabel |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.Object | htmlAttributes |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.String | optionLabel |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.String | optionLabel |
System.Object | htmlAttributes |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.String | optionLabel |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.Object | htmlAttributes |
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Collections.Generic.IEnumerable<ServiceStack.Html.SelectListItem> | selectList |
System.Object | htmlAttributes |
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
Type | Name |
---|---|
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