FormContext.RenderedField Method
Returns or sets a value that indicates whether the field has been rendered in the form.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | RenderedField(String) | Returns a value that indicates whether the specified field has been rendered in the form. |
![]() | RenderedField(String, Boolean) | Sets a value that indicates whether the specified field has been rendered in the form. |
FormContext.RenderedField Method (String)
Returns a value that indicates whether the specified field has been rendered in the form.
Parameters
- fieldName
-
Type:
System.String
The field name.
FormContext.RenderedField Method (String, Boolean)
Sets a value that indicates whether the specified field has been rendered in the form.
Parameters
- fieldName
-
Type:
System.String
The field name.
- value
-
Type:
System.Boolean
true to specify that the field has been rendered in the form; otherwise, false.
Show:
