InputExtensions
Assembly: ServiceStack.Razor.dll
View Source
public static class InputExtensions
Methods
CheckBox(HtmlHelper, String)
View Source
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
CheckBox(HtmlHelper, String, Boolean)
View Source
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, bool isChecked)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Boolean | isChecked |
CheckBox(HtmlHelper, String, Boolean, Object)
View Source
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, bool isChecked, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Boolean | isChecked |
System.Object | htmlAttributes |
CheckBox(HtmlHelper, String, Object)
View Source
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | htmlAttributes |
CheckBox(HtmlHelper, String, IDictionary<String, Object>)
View Source
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
CheckBox(HtmlHelper, String, Boolean, IDictionary<String, Object>)
View Source
public static MvcHtmlString CheckBox(this HtmlHelper htmlHelper, string name, bool isChecked, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Boolean | isChecked |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
CheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>)
View Source
public static MvcHtmlString CheckBoxFor<TModel>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, bool>> expression)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
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
public static MvcHtmlString CheckBoxFor<TModel>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, bool>> expression, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,System.Boolean>> | expression |
System.Object | htmlAttributes |
Type Parameters
TModel
CheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>, IDictionary<String, Object>)
View Source
public static MvcHtmlString CheckBoxFor<TModel>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, bool>> expression, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
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
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
Hidden(HtmlHelper, String, Object)
View Source
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name, object value)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
Hidden(HtmlHelper, String, Object, Object)
View Source
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Object | htmlAttributes |
Hidden(HtmlHelper, String, Object, IDictionary<String, Object>)
View Source
public static MvcHtmlString Hidden(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
HiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)
View Source
public static MvcHtmlString HiddenFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
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
public static MvcHtmlString HiddenFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Object | htmlAttributes |
Type Parameters
TModel
TProperty
HiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)
View Source
public static MvcHtmlString HiddenFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, 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.IDictionary<System.String,System.Object> | htmlAttributes |
Type Parameters
TModel
TProperty
Password(HtmlHelper, String)
View Source
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
Password(HtmlHelper, String, Object)
View Source
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name, object value)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
Password(HtmlHelper, String, Object, Object)
View Source
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Object | htmlAttributes |
Password(HtmlHelper, String, Object, IDictionary<String, Object>)
View Source
public static MvcHtmlString Password(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
PasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)
View Source
public static MvcHtmlString PasswordFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
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
public static MvcHtmlString PasswordFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Object | htmlAttributes |
Type Parameters
TModel
TProperty
PasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)
View Source
public static MvcHtmlString PasswordFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, 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.IDictionary<System.String,System.Object> | htmlAttributes |
Type Parameters
TModel
TProperty
RadioButton(HtmlHelper, String, Object)
View Source
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
RadioButton(HtmlHelper, String, Object, Object)
View Source
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Object | htmlAttributes |
RadioButton(HtmlHelper, String, Object, IDictionary<String, Object>)
View Source
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
RadioButton(HtmlHelper, String, Object, Boolean)
View Source
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, bool isChecked)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Boolean | isChecked |
RadioButton(HtmlHelper, String, Object, Boolean, Object)
View Source
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, bool isChecked, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Boolean | isChecked |
System.Object | htmlAttributes |
RadioButton(HtmlHelper, String, Object, Boolean, IDictionary<String, Object>)
View Source
public static MvcHtmlString RadioButton(this HtmlHelper htmlHelper, string name, object value, bool isChecked, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Boolean | isChecked |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
RadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)
View Source
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object value)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Object | value |
Type Parameters
TModel
TProperty
RadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, Object)
View Source
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object value, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Object | value |
System.Object | htmlAttributes |
Type Parameters
TModel
TProperty
RadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, IDictionary<String, Object>)
View Source
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Object | value |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
Type Parameters
TModel
TProperty
TextBox(HtmlHelper, String)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
TextBox(HtmlHelper, String, Object)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
TextBox(HtmlHelper, String, Object, String)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, string format)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.String | format |
TextBox(HtmlHelper, String, Object, Object)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Object | htmlAttributes |
TextBox(HtmlHelper, String, Object, String, Object)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, string format, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.String | format |
System.Object | htmlAttributes |
TextBox(HtmlHelper, String, Object, IDictionary<String, Object>)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
TextBox(HtmlHelper, String, Object, String, IDictionary<String, Object>)
View Source
public static MvcHtmlString TextBox(this HtmlHelper htmlHelper, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |
System.Object | value |
System.String | format |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)
View Source
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
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
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, string format)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.String | format |
Type Parameters
TModel
TProperty
TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)
View Source
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.Object | htmlAttributes |
Type Parameters
TModel
TProperty
TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, Object)
View Source
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, string format, object htmlAttributes)
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.String | format |
System.Object | htmlAttributes |
Type Parameters
TModel
TProperty
TextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)
View Source
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, 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.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
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
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper<TModel> | htmlHelper |
System.Linq.Expressions.Expression<System.Func<<TModel>,<TProperty>>> | expression |
System.String | format |
System.Collections.Generic.IDictionary<System.String,System.Object> | htmlAttributes |
Type Parameters
TModel
TProperty
ReturnUrl(HtmlHelper, String)
View Source
public static MvcHtmlString ReturnUrl(this HtmlHelper htmlHelper, string name = "ReturnUrl")
Returns
ServiceStack.Html.MvcHtmlString
Parameters
Type | Name |
---|---|
ServiceStack.Html.HtmlHelper | htmlHelper |
System.String | name |