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)


Protected Overridable Sub RenderFieldForInput ( _
    output As HtmlTextWriter _
Dim output As HtmlTextWriter

protected virtual void RenderFieldForInput(
    HtmlTextWriter output



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.

See also


BaseFieldControl class

BaseFieldControl members

Microsoft.SharePoint.WebControls namespace