HTML helpers in ASP.NET MVC 2
DisplayFor: Returns HTML markup for each property in the
object that’s represented
by the expression.
DisplayTextFor :Returns HTML markup for each property in the
object that’s represented by the specified expression.
EditorFor: Returns an HTML input element for each
property in the object that’s
represented by the specified expression
CheckBoxFor :Returns a check box input element for each
property in the object
that’s represented by the specified expression.
DropDownListFor: Returns an HTML select element for each property in the object
that’s represented by the specified expression using the specified list items.
HiddenFor: Returns an HTML hidden input element for each property in the
object
that’s represented by the specified expression.
LabelFor :Returns an HTML label element and the
property name of the property
that’s represented by the specified expression
ListBoxFor :Returns an HTML select element for each
property in the object that’s
represented by the specified expression and uses the provided data
for the list items.
PasswordFor: Returns a password input element for each property in the object
that’s represented by the specified expression.
RadioButtonFor: Returns a radio button input element for each property in the
object
that’s represented by the specified expression.
TextAreaFor: Returns an HTML text area element for each property in the
object
that’s represented by the specified expression.
TextBoxFor: Returns a text input element for each property in the object
that’s represented by the specified expression.
ValidateFor :Retrieves the validation metadata and
validates each data field that’s
represented by the specified expression.
ValidationMessageFor: Returns the HTML markup for a validation-error message for each
data field that’s represented by the specified expression.
No comments:
Post a Comment