Share via


SaveButton.CreateChildControls method

Finalizes certain properties of the child Microsoft ASP.NET 2.0 Button control that is declared in the rendering template for the SaveButton control.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overrides Sub CreateChildControls
'Usage

Me.CreateChildControls()
protected override void CreateChildControls()

Remarks

This override of CreateChildControls performs certain tasks necessary before the child Button control can be rendered. It assigns functionality to the Click event of the child Button control, based on whether the mode is New or Edit and on whether the list item being saved is in a document library. If the list item that is being saved is checked out, CreateChildControls also changes the child Button control's text label to indicate that clicking it both saves and checks in. Finally, it assigns the child the same TabIndex as the SaveButton.

The child control is created by the rendering template for the SaveButton control, not by CreateChildControls.

See also

Reference

SaveButton class

SaveButton members

Microsoft.SharePoint.WebControls namespace