Skip to main content

InputExtensions

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

Methods

CheckBox(HtmlHelper, String)

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

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname

CheckBox(HtmlHelper, String, Boolean)

View Source
Declaration
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, bool isChecked)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.BooleanisChecked

CheckBox(HtmlHelper, String, Boolean, Object)

View Source
Declaration
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, bool isChecked, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.BooleanisChecked
System.ObjecthtmlAttributes

CheckBox(HtmlHelper, String, Object)

View Source
Declaration
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.ObjecthtmlAttributes

CheckBox(HtmlHelper, String, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

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

CheckBox(HtmlHelper, String, Boolean, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, bool isChecked, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.BooleanisChecked
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

CheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>)

View Source
Declaration
public static MvcHtmlString CheckBoxFor<TModel>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, bool>> expression)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,System.Boolean>>expression
Type Parameters
  • TModel

CheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>, Object)

View Source
Declaration
public static MvcHtmlString CheckBoxFor<TModel>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, bool>> expression, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,System.Boolean>>expression
System.ObjecthtmlAttributes
Type Parameters
  • TModel

CheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString CheckBoxFor<TModel>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, bool>> expression, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

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

Hidden(HtmlHelper, String)

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

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname

Hidden(HtmlHelper, String, Object)

View Source
Declaration
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name, object value)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue

Hidden(HtmlHelper, String, Object, Object)

View Source
Declaration
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.ObjecthtmlAttributes

Hidden(HtmlHelper, String, Object, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

HiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

View Source
Declaration
public static MvcHtmlString HiddenFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
Type Parameters
  • TModel
  • TProperty

HiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

View Source
Declaration
public static MvcHtmlString HiddenFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.ObjecthtmlAttributes
Type Parameters
  • TModel
  • TProperty

HiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString HiddenFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, 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.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters
  • TModel
  • TProperty

Password(HtmlHelper, String)

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

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname

Password(HtmlHelper, String, Object)

View Source
Declaration
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name, object value)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue

Password(HtmlHelper, String, Object, Object)

View Source
Declaration
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.ObjecthtmlAttributes

Password(HtmlHelper, String, Object, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

PasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

View Source
Declaration
public static MvcHtmlString PasswordFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
Type Parameters
  • TModel
  • TProperty

PasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

View Source
Declaration
public static MvcHtmlString PasswordFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.ObjecthtmlAttributes
Type Parameters
  • TModel
  • TProperty

PasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString PasswordFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, 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.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters
  • TModel
  • TProperty

RadioButton(HtmlHelper, String, Object)

View Source
Declaration
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue

RadioButton(HtmlHelper, String, Object, Object)

View Source
Declaration
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.ObjecthtmlAttributes

RadioButton(HtmlHelper, String, Object, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

RadioButton(HtmlHelper, String, Object, Boolean)

View Source
Declaration
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, bool isChecked)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.BooleanisChecked

RadioButton(HtmlHelper, String, Object, Boolean, Object)

View Source
Declaration
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, bool isChecked, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.BooleanisChecked
System.ObjecthtmlAttributes

RadioButton(HtmlHelper, String, Object, Boolean, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, bool isChecked, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.BooleanisChecked
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

RadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

View Source
Declaration
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object value)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Objectvalue
Type Parameters
  • TModel
  • TProperty

RadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, Object)

View Source
Declaration
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object value, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Objectvalue
System.ObjecthtmlAttributes
Type Parameters
  • TModel
  • TProperty

RadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object value, 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.Objectvalue
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters
  • TModel
  • TProperty

TextBox(HtmlHelper, String)

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

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname

TextBox(HtmlHelper, String, Object)

View Source
Declaration
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue

TextBox(HtmlHelper, String, Object, String)

View Source
Declaration
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, string format)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Stringformat

TextBox(HtmlHelper, String, Object, Object)

View Source
Declaration
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.ObjecthtmlAttributes

TextBox(HtmlHelper, String, Object, String, Object)

View Source
Declaration
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, string format, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Stringformat
System.ObjecthtmlAttributes

TextBox(HtmlHelper, String, Object, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

TextBox(HtmlHelper, String, Object, String, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname
System.Objectvalue
System.Stringformat
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes

TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

View Source
Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
Type Parameters
  • TModel
  • TProperty

TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String)

View Source
Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, string format)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Stringformat
Type Parameters
  • TModel
  • TProperty

TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

View Source
Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.ObjecthtmlAttributes
Type Parameters
  • TModel
  • TProperty

TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, Object)

View Source
Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, string format, object htmlAttributes)
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelper<TModel>htmlHelper
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>>expression
System.Stringformat
System.ObjecthtmlAttributes
Type Parameters
  • TModel
  • TProperty

TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, 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.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters
  • TModel
  • TProperty

TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, IDictionary<String, Object>)

View Source
Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, string format, 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.Stringformat
System.Collections.Generic.IDictionary<System.String,System.Object>htmlAttributes
Type Parameters
  • TModel
  • TProperty

ReturnUrl(HtmlHelper, String)

View Source
Declaration
public static MvcHtmlString ReturnUrl(this HtmlHelper htmlHelper, string name = "ReturnUrl")
Returns

ServiceStack.Html.MvcHtmlString

Parameters
TypeName
ServiceStack.Html.HtmlHelperhtmlHelper
System.Stringname