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 WebPart or other server control that is currently selected for editing or for creating a connection with another control.property returns a reference to a
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.
Available since 2.0