Show / Hide Table of Contents

Class HtmlInputExtensions

Inheritance
object
HtmlInputExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlInputExtensions

Methods

CheckBox(DnnHtmlHelper, string)

Declaration
public static MvcHtmlString CheckBox(this DnnHtmlHelper html, string name)
Parameters
Type Name Description
DnnHtmlHelper html
string name
Returns
Type Description
MvcHtmlString

CheckBox(DnnHtmlHelper, string, bool)

Declaration
public static MvcHtmlString CheckBox(this DnnHtmlHelper html, string name, bool isChecked)
Parameters
Type Name Description
DnnHtmlHelper html
string name
bool isChecked
Returns
Type Description
MvcHtmlString

CheckBox(DnnHtmlHelper, string, bool, IDictionary<string, object>)

Declaration
public static MvcHtmlString CheckBox(this DnnHtmlHelper html, string name, bool isChecked, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
bool isChecked
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

CheckBox(DnnHtmlHelper, string, bool, object)

Declaration
public static MvcHtmlString CheckBox(this DnnHtmlHelper html, string name, bool isChecked, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
bool isChecked
object htmlAttributes
Returns
Type Description
MvcHtmlString

CheckBox(DnnHtmlHelper, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString CheckBox(this DnnHtmlHelper html, string name, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

CheckBox(DnnHtmlHelper, string, object)

Declaration
public static MvcHtmlString CheckBox(this DnnHtmlHelper html, string name, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object htmlAttributes
Returns
Type Description
MvcHtmlString

CheckBoxFor<TModel>(DnnHtmlHelper<TModel>, Expression<Func<TModel, bool>>)

Declaration
public static MvcHtmlString CheckBoxFor<TModel>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, bool>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, bool>> expression
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel

CheckBoxFor<TModel>(DnnHtmlHelper<TModel>, Expression<Func<TModel, bool>>, IDictionary<string, object>)

Declaration
public static MvcHtmlString CheckBoxFor<TModel>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, bool>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, bool>> expression
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel

CheckBoxFor<TModel>(DnnHtmlHelper<TModel>, Expression<Func<TModel, bool>>, object)

Declaration
public static MvcHtmlString CheckBoxFor<TModel>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, bool>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, bool>> expression
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel

Hidden(DnnHtmlHelper, string)

Declaration
public static MvcHtmlString Hidden(this DnnHtmlHelper html, string name)
Parameters
Type Name Description
DnnHtmlHelper html
string name
Returns
Type Description
MvcHtmlString

Hidden(DnnHtmlHelper, string, object)

Declaration
public static MvcHtmlString Hidden(this DnnHtmlHelper html, string name, object value)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
Returns
Type Description
MvcHtmlString

Hidden(DnnHtmlHelper, string, object, IDictionary<string, object>)

Declaration
public static MvcHtmlString Hidden(this DnnHtmlHelper html, string name, object value, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

Hidden(DnnHtmlHelper, string, object, object)

Declaration
public static MvcHtmlString Hidden(this DnnHtmlHelper html, string name, object value, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
object htmlAttributes
Returns
Type Description
MvcHtmlString

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

Declaration
public static MvcHtmlString HiddenFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

HiddenFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<string, object>)

Declaration
public static MvcHtmlString HiddenFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

HiddenFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, object)

Declaration
public static MvcHtmlString HiddenFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

Password(DnnHtmlHelper, string)

Declaration
public static MvcHtmlString Password(this DnnHtmlHelper html, string name)
Parameters
Type Name Description
DnnHtmlHelper html
string name
Returns
Type Description
MvcHtmlString

Password(DnnHtmlHelper, string, object)

Declaration
public static MvcHtmlString Password(this DnnHtmlHelper html, string name, object value)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
Returns
Type Description
MvcHtmlString

Password(DnnHtmlHelper, string, object, IDictionary<string, object>)

Declaration
public static MvcHtmlString Password(this DnnHtmlHelper html, string name, object value, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

Password(DnnHtmlHelper, string, object, object)

Declaration
public static MvcHtmlString Password(this DnnHtmlHelper html, string name, object value, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
object htmlAttributes
Returns
Type Description
MvcHtmlString

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

Declaration
public static MvcHtmlString PasswordFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

PasswordFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<string, object>)

Declaration
public static MvcHtmlString PasswordFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

PasswordFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, object)

Declaration
public static MvcHtmlString PasswordFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

RadioButton(DnnHtmlHelper, string, object)

Declaration
public static MvcHtmlString RadioButton(this DnnHtmlHelper html, string name, object value)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
Returns
Type Description
MvcHtmlString

RadioButton(DnnHtmlHelper, string, object, bool)

Declaration
public static MvcHtmlString RadioButton(this DnnHtmlHelper html, string name, object value, bool isChecked)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
bool isChecked
Returns
Type Description
MvcHtmlString

RadioButton(DnnHtmlHelper, string, object, bool, IDictionary<string, object>)

Declaration
public static MvcHtmlString RadioButton(this DnnHtmlHelper html, string name, object value, bool isChecked, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
bool isChecked
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

RadioButton(DnnHtmlHelper, string, object, bool, object)

Declaration
public static MvcHtmlString RadioButton(this DnnHtmlHelper html, string name, object value, bool isChecked, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
bool isChecked
object htmlAttributes
Returns
Type Description
MvcHtmlString

RadioButton(DnnHtmlHelper, string, object, IDictionary<string, object>)

Declaration
public static MvcHtmlString RadioButton(this DnnHtmlHelper html, string name, object value, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

RadioButton(DnnHtmlHelper, string, object, object)

Declaration
public static MvcHtmlString RadioButton(this DnnHtmlHelper html, string name, object value, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
object htmlAttributes
Returns
Type Description
MvcHtmlString

RadioButtonFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, object)

Declaration
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, object value)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
object value
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

RadioButtonFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, object, IDictionary<string, object>)

Declaration
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, object value, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
object value
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

RadioButtonFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, object, object)

Declaration
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, object value, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
object value
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

TextBox(DnnHtmlHelper, string)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name)
Parameters
Type Name Description
DnnHtmlHelper html
string name
Returns
Type Description
MvcHtmlString

TextBox(DnnHtmlHelper, string, object)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name, object value)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
Returns
Type Description
MvcHtmlString

TextBox(DnnHtmlHelper, string, object, IDictionary<string, object>)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name, object value, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

TextBox(DnnHtmlHelper, string, object, object)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name, object value, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
object htmlAttributes
Returns
Type Description
MvcHtmlString

TextBox(DnnHtmlHelper, string, object, string)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name, object value, string format)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
string format
Returns
Type Description
MvcHtmlString

TextBox(DnnHtmlHelper, string, object, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
string format
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

TextBox(DnnHtmlHelper, string, object, string, object)

Declaration
public static MvcHtmlString TextBox(this DnnHtmlHelper html, string name, object value, string format, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html
string name
object value
string format
object htmlAttributes
Returns
Type Description
MvcHtmlString

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

Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

TextBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<string, object>)

Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

TextBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, object)

Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

TextBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, string)

Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, string format)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
string format
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

TextBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, string format, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
string format
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty

TextBoxFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, string, object)

Declaration
public static MvcHtmlString TextBoxFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, string format, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html
Expression<Func<TModel, TProperty>> expression
string format
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TProperty
Back to top by the community, for the community... #DNNCMS