Class InputHelperExtensions
Html helpers form input tags
Inheritance
Inherited Members
Namespace: EPiServer.Shell.Web.Mvc.Html
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public static class InputHelperExtensions
Methods
GetId(HtmlHelper)
Gets the next unique id.
Declaration
public static string GetId(this HtmlHelper htmlHelper)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
Returns
Type | Description |
---|---|
System.String |
Label(HtmlHelper, String, String, IDictionary<String, Object>)
Returns a radiobutton with an associated label
Declaration
public static string Label(this HtmlHelper htmlHelper, string labelText, string inputId, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | labelText | The label text. |
System.String | inputId | The input id. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a label. |
Label(HtmlHelper, String, String, Object)
Returns a radiobutton with an associated label
Declaration
public static string Label(this HtmlHelper htmlHelper, string labelText, string inputId, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | labelText | The label text. |
System.String | inputId | The input id. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a label. |
LabeledCheckBox(HtmlHelper, String, String)
Returns a checkbox with an associated label
Declaration
public static string LabeledCheckBox(this HtmlHelper htmlHelper, string name, string labelText)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The text of the label text. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
LabeledCheckBox(HtmlHelper, String, String, Boolean)
Returns a checkbox with an associated label
Declaration
public static string LabeledCheckBox(this HtmlHelper htmlHelper, string name, string labelText, bool isChecked)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The text of the label text. |
System.Boolean | isChecked | Set to |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
LabeledCheckBox(HtmlHelper, String, String, Boolean, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a checkbox with an associated label
Declaration
public static string LabeledCheckBox(this HtmlHelper htmlHelper, string name, string labelText, bool isChecked, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The text of the label text. |
System.Boolean | isChecked | Set to |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a checkbox with an associated label. |
LabeledCheckBox(HtmlHelper, String, String, Boolean, Object, Object)
Returns a checkbox with an associated label
Declaration
public static string LabeledCheckBox(this HtmlHelper htmlHelper, string name, string labelText, bool isChecked, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The text of the label text. |
System.Boolean | isChecked | Set to |
System.Object | htmlAttributes | The HTML attributes for the input. |
System.Object | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
LabeledCheckBox(HtmlHelper, String, String, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a checkbox with an associated label
Declaration
public static string LabeledCheckBox(this HtmlHelper htmlHelper, string name, string labelText, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The text of the label text. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a checkbox with an associated label. |
LabeledCheckBox(HtmlHelper, String, String, Object, Object)
Returns a checkbox with an associated label
Declaration
public static string LabeledCheckBox(this HtmlHelper htmlHelper, string name, string labelText, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The text of the label text. |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
LabeledDropDownList(HtmlHelper, String, String)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, IEnumerable<SelectListItem>)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, IEnumerable<SelectListItem> selectList)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | selectList | The list of values used to populate the drop-down. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, IEnumerable<SelectListItem>, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, IEnumerable<SelectListItem> selectList, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | selectList | The list of values used to populate the drop-down. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes for the drop-down. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, IEnumerable<SelectListItem>, Object, Object)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, IEnumerable<SelectListItem> selectList, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | selectList | The list of values used to populate the drop-down. |
System.Object | htmlAttributes | The HTML attributes for the drop-down. |
System.Object | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, IEnumerable<SelectListItem>, String)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, IEnumerable<SelectListItem> selectList, string optionLabel)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | selectList | The list of values used to populate the drop-down. |
System.String | optionLabel | Provides the text for a default empty valued option, if it is not null. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, IEnumerable<SelectListItem>, String, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, IEnumerable<SelectListItem> selectList, string optionLabel, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | selectList | The list of values used to populate the drop-down. |
System.String | optionLabel | Provides the text for a default empty valued option, if it is not null. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes for the drop-down. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, IEnumerable<SelectListItem>, String, Object, Object)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, IEnumerable<SelectListItem> selectList, string optionLabel, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | selectList | The list of values used to populate the drop-down. |
System.String | optionLabel | Provides the text for a default empty valued option, if it is not null. |
System.Object | htmlAttributes | The HTML attributes for the drop-down. |
System.Object | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledDropDownList(HtmlHelper, String, String, String)
Returns a drop-down with an associated label.
Declaration
public static string LabeledDropDownList(this HtmlHelper htmlHelper, string name, string labelText, string optionLabel)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the drop-down. |
System.String | labelText | The label text. |
System.String | optionLabel | Provides the text for a default empty valued option, if it is not null. |
Returns
Type | Description |
---|---|
System.String | An html string representing a drop-down list with an associated label. |
LabeledPassword(HtmlHelper, String, String)
Returns a password textbox with an associated label
Declaration
public static string LabeledPassword(this HtmlHelper htmlHelper, string name, string labelText)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the password textbox. |
System.String | labelText | The label text. |
Returns
Type | Description |
---|---|
System.String | An html string representing a password textbox with an associated label. |
LabeledPassword(HtmlHelper, String, String, Object)
Returns a password textbox with an associated label
Declaration
public static string LabeledPassword(this HtmlHelper htmlHelper, string name, string labelText, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the password textbox. |
System.String | labelText | The label text. |
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.String | An html string representing a password textbox with an associated label. |
LabeledPassword(HtmlHelper, String, String, Object, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a password textbox with an associated label
Declaration
public static string LabeledPassword(this HtmlHelper htmlHelper, string name, string labelText, object value, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the password textbox. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a password textbox with an associated label. |
LabeledPassword(HtmlHelper, String, String, Object, Object, Object)
Returns a password textbox with an associated label
Declaration
public static string LabeledPassword(this HtmlHelper htmlHelper, string name, string labelText, object value, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the password textbox. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a password textbox with an associated label. |
LabeledRadioButton(HtmlHelper, String, String, Object)
Returns a radiobutton with an associated label
Declaration
public static string LabeledRadioButton(this HtmlHelper htmlHelper, string name, string labelText, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the radiobutton. |
System.String | labelText | The label text. |
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.String | An html string representing a radiobutton with an associated label. |
LabeledRadioButton(HtmlHelper, String, String, Object, Boolean)
Returns a radiobutton with an associated label
Declaration
public static string LabeledRadioButton(this HtmlHelper htmlHelper, string name, string labelText, object value, bool isChecked)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the radiobutton. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Boolean | isChecked | Set to |
Returns
Type | Description |
---|---|
System.String | An html string representing a radiobutton with an associated label. |
LabeledRadioButton(HtmlHelper, String, String, Object, Boolean, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a radiobutton with an associated label
Declaration
public static string LabeledRadioButton(this HtmlHelper htmlHelper, string name, string labelText, object value, bool isChecked, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the radiobutton. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Boolean | isChecked | Set to |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a radiobutton with an associated label. |
LabeledRadioButton(HtmlHelper, String, String, Object, Boolean, Object, Object)
Returns a radiobutton with an associated label
Declaration
public static string LabeledRadioButton(this HtmlHelper htmlHelper, string name, string labelText, object value, bool isChecked, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the radiobutton. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Boolean | isChecked | Set to |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a radiobutton with an associated label. |
LabeledRadioButton(HtmlHelper, String, String, Object, Object, Object)
Returns a radiobutton with an associated label
Declaration
public static string LabeledRadioButton(this HtmlHelper htmlHelper, string name, string labelText, object value, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the radiobutton. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a radiobutton with an associated label. |
LabeledTextArea(HtmlHelper, String, String)
Returns a textarea with an associated label.
Declaration
public static string LabeledTextArea(this HtmlHelper htmlHelper, string name, string labelText)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name. |
System.String | labelText | The label text. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textarea with an associated label. |
LabeledTextArea(HtmlHelper, String, String, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a textarea with an associated label.
Declaration
public static string LabeledTextArea(this HtmlHelper htmlHelper, string name, string labelText, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name. |
System.String | labelText | The label text. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textarea with an associated label. |
LabeledTextArea(HtmlHelper, String, String, Object, Object)
Returns a textarea with an associated label.
Declaration
public static string LabeledTextArea(this HtmlHelper htmlHelper, string name, string labelText, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name. |
System.String | labelText | The label text. |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textarea with an associated label. |
LabeledTextArea(HtmlHelper, String, String, String)
Returns a textarea with an associated label.
Declaration
public static string LabeledTextArea(this HtmlHelper htmlHelper, string name, string labelText, string value)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name. |
System.String | labelText | The label text. |
System.String | value | The value. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textarea with an associated label. |
LabeledTextArea(HtmlHelper, String, String, String, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a textarea with an associated label.
Declaration
public static string LabeledTextArea(this HtmlHelper htmlHelper, string name, string labelText, string value, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name. |
System.String | labelText | The label text. |
System.String | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textarea with an associated label. |
LabeledTextArea(HtmlHelper, String, String, String, Object, Object)
Returns a textarea with an associated label.
Declaration
public static string LabeledTextArea(this HtmlHelper htmlHelper, string name, string labelText, string value, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name. |
System.String | labelText | The label text. |
System.String | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textarea with an associated label. |
LabeledTextBox(HtmlHelper, String, String)
Returns a textbox with an associated label
Declaration
public static string LabeledTextBox(this HtmlHelper htmlHelper, string name, string labelText)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The label text. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textbox with an associated label. |
LabeledTextBox(HtmlHelper, String, String, Object)
Returns a textbox with an associated label
Declaration
public static string LabeledTextBox(this HtmlHelper htmlHelper, string name, string labelText, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The label text. |
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textbox with an associated label. |
LabeledTextBox(HtmlHelper, String, String, Object, IDictionary<String, Object>, IDictionary<String, Object>)
Returns a textbox with an associated label
Declaration
public static string LabeledTextBox(this HtmlHelper htmlHelper, string name, string labelText, object value, IDictionary<string, object> htmlAttributes, IDictionary<string, object> labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
System.Collections.Generic.IDictionary<System.String, System.Object> | labelHtmlAttributes | The HTML attributes for the label. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textbox with an associated label. |
LabeledTextBox(HtmlHelper, String, String, Object, Object, Object)
Returns a textbox with an associated label
Declaration
public static string LabeledTextBox(this HtmlHelper htmlHelper, string name, string labelText, object value, object htmlAttributes, object labelHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | htmlHelper | The HTML helper. |
System.String | name | The name of the checkbox. |
System.String | labelText | The label text. |
System.Object | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
System.Object | labelHtmlAttributes | The label HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing a textbox with an associated label. |
SelectList(HtmlHelper, Object, Object[])
Creates a select list for usage in a drop down list.
Declaration
public static IEnumerable<SelectListItem> SelectList(this HtmlHelper html, object selectedValue, params object[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The object which this method extends |
System.Object | selectedValue | The selected value in the select list |
System.Object[] | values | The values of the select list |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | A loaded list of select list items |
SelectList(HtmlHelper, Object, String, String, Object[])
Creates a select list for usage in a drop down list.
Declaration
public static IEnumerable<SelectListItem> SelectList(this HtmlHelper html, object selectedValue, string dataValueField, string dataTextField, object[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The object which this method extends |
System.Object | selectedValue | The selected value in the select list |
System.String | dataValueField | Name of the field used as the value attribute. |
System.String | dataTextField | Name of the field used as the text value. |
System.Object[] | values | The values of the select list |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> | A loaded list of select list items |
ShellButton(HtmlHelper, ShellInputType, String, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellButton(this HtmlHelper html, ShellInputType inputType, string name, string value, string cssClass, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
ShellInputType | inputType | Type of the input. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellButton(HtmlHelper, String, String, IDictionary<String, Object>)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellButton(this HtmlHelper html, string name, string value, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellButton(HtmlHelper, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellButton(this HtmlHelper html, string name, string value, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellButton(HtmlHelper, String, String, String, IDictionary<String, Object>)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellButton(this HtmlHelper html, string name, string value, string cssClass, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellButton(HtmlHelper, String, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellButton(this HtmlHelper html, string name, string value, string cssClass, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellInput(HtmlHelper, ShellInputType, String, String, IDictionary<String, Object>)
Creates an input with the appropriate styles.
Declaration
public static string ShellInput(this HtmlHelper html, ShellInputType inputType, string name, string value, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The HTML. |
ShellInputType | inputType | Type of the input. |
System.String | name | The name. |
System.String | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellInput(HtmlHelper, ShellInputType, String, String, Object)
Creates an input with the appropriate styles.
Declaration
public static string ShellInput(this HtmlHelper html, ShellInputType inputType, string name, string value, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The HTML. |
ShellInputType | inputType | Type of the input. |
System.String | name | The name. |
System.String | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellInput(HtmlHelper, ShellInputType, String, String, String, IDictionary<String, Object>)
Creates an input with the appropriate styles.
Declaration
public static string ShellInput(this HtmlHelper html, ShellInputType inputType, string name, string value, string cssClass, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The HTML. |
ShellInputType | inputType | Type of the input. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellInput(HtmlHelper, ShellInputType, String, String, String, Object)
Creates an input with the appropriate styles.
Declaration
public static string ShellInput(this HtmlHelper html, ShellInputType inputType, string name, string value, string cssClass, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The HTML. |
ShellInputType | inputType | Type of the input. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellResetButton(HtmlHelper, String, String, IDictionary<String, Object>)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellResetButton(this HtmlHelper html, string name, string value, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellResetButton(HtmlHelper, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellResetButton(this HtmlHelper html, string name, string value, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellResetButton(HtmlHelper, String, String, String, IDictionary<String, Object>)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellResetButton(this HtmlHelper html, string name, string value, string cssClass, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellResetButton(HtmlHelper, String, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellResetButton(this HtmlHelper html, string name, string value, string cssClass, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellSubmitButton(HtmlHelper, String, String, IDictionary<String, Object>)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellSubmitButton(this HtmlHelper html, string name, string value, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellSubmitButton(HtmlHelper, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellSubmitButton(this HtmlHelper html, string name, string value, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellSubmitButton(HtmlHelper, String, String, String, IDictionary<String, Object>)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellSubmitButton(this HtmlHelper html, string name, string value, string cssClass, IDictionary<string, object> htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Collections.Generic.IDictionary<System.String, System.Object> | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |
ShellSubmitButton(HtmlHelper, String, String, String, Object)
Creates an input button of submit type with the appropriate styles. To be used when an EPiServer styled button is desired.
Declaration
public static string ShellSubmitButton(this HtmlHelper html, string name, string value, string cssClass, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.HtmlHelper | html | The html helper to hook the helper on. |
System.String | name | The name. |
System.String | value | The value. |
System.String | cssClass | The CSS class. |
System.Object | htmlAttributes | The HTML attributes. |
Returns
Type | Description |
---|---|
System.String | An html string representing the input. |