Edit

Share via


MobilePage.AddedControl(Control, Int32) Method

Definition

Called after a control is added to the Controls collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 override void AddedControl(System::Web::UI::Control ^ control, int index);
protected override void AddedControl (System.Web.UI.Control control, int index);
override this.AddedControl : System.Web.UI.Control * int -> unit
Protected Overrides Sub AddedControl (control As Control, index As Integer)

Parameters

control
Control

The MobileControl that has been added.

index
Int32

The index of the control in the Controls collection.

Remarks

This member overrides the Control.AddedControl method to determine whether the control is a Form or a UserControl before it calls the base method. If the control is a Form or a UserControl object, the Forms property is set to null.

Applies to

See also