BaseFieldControl.RenderFieldForInput Method
When overridden in derived class, renders the field in a child control that lets its value be changed.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overridable Sub RenderFieldForInput ( _
output As HtmlTextWriter _
)
'Usage
Dim output As HtmlTextWriter
Me.RenderFieldForInput(output)
protected virtual void RenderFieldForInput(
HtmlTextWriter output
)
Parameters
output
Type: System.Web.UI.HtmlTextWriterThe object that writes the HTML that is to be rendered.
Remarks
Typically, this method is used on the Edit form and New form.
With the default implementation, if IsValid is false, an error message is rendered. This is the value of ErrorMessage, unless it is a null reference (Nothing in Visual Basic), in which case a generic error message is rendered.
Notes to Inheritors
You must override this method to create the editable child control.
When you override this method, your overriding code should call RenderValidationMessage in addition to calling Render.