Gets a reference to a WebPart or other server control that is currently selected for editing or for creating a connection with another control.
Assembly: System.Web (in System.Web.dll)
The property returns a reference to a WebPart or other server control that is currently selected for editing or for creating a connection with another control.
The WebPartManager control provides several useful methods and events for handling the process of selecting a control. The SelectedWebPartChanging event occurs just after a control is selected, but before any changes are made. To carry out some actions on the control after it is selected, override the OnSelectedWebPartChanging method. For example, you might want to change the appearance of a control that is selected but has not changed yet, to emphasize visually which control is selected.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.