ConnectionsZone Class
Provides a user interface (UI) that enables users to form connections between WebPart and other server controls that reside in WebPartZoneBase zones.
System.Web.UI::Control
System.Web.UI.WebControls::WebControl
System.Web.UI.WebControls::CompositeControl
System.Web.UI.WebControls.WebParts::WebZone
System.Web.UI.WebControls.WebParts::ToolZone
System.Web.UI.WebControls.WebParts::ConnectionsZone
Assembly: System.Web (in System.Web.dll)
The ConnectionsZone type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AccessKey | Gets or sets the access key that allows you to quickly navigate to the Web server control. (Inherited from WebControl.) |
![]() | Adapter | Gets the browser-specific adapter for the control. (Inherited from Control.) |
![]() | AppRelativeTemplateSourceDirectory | Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. (Inherited from Control.) |
![]() | AssociatedDisplayModes | Gets the collection of WebPartDisplayMode objects that are associated with a particular ToolZone zone. (Inherited from ToolZone.) |
![]() | Attributes | Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (Inherited from WebControl.) |
![]() | BackColor | Gets or sets the background color of the Web server control. (Inherited from WebControl.) |
![]() | BackImageUrl | Gets or sets the URL to a background image for a zone. (Inherited from WebZone.) |
![]() | BindingContainer | Infrastructure. Gets the control that contains this control's data binding. (Inherited from Control.) |
![]() | BorderColor | Gets or sets the border color of the Web control. (Inherited from WebControl.) |
![]() | BorderStyle | Gets or sets the border style of the Web server control. (Inherited from WebControl.) |
![]() | BorderWidth | Gets or sets the border width of the Web server control. (Inherited from WebControl.) |
![]() | CancelVerb | Gets a reference to a WebPartVerb object that enables end users to cancel the process of establishing a connection. |
![]() | ChildControlsCreated | Gets a value that indicates whether the server control's child controls have been created. (Inherited from Control.) |
![]() | ClientID | Gets the control ID for HTML markup that is generated by ASP.NET. (Inherited from Control.) |
![]() | ClientIDMode | Gets or sets the algorithm that is used to generate the value of the ClientID property. (Inherited from Control.) |
![]() | ClientIDSeparator | Gets a character value representing the separator character used in the ClientID property. (Inherited from Control.) |
![]() | CloseVerb | Gets a reference to a WebPartVerb object that enables end users to close the connection user interface (UI) created by the ConnectionsZone control. |
![]() | ConfigureConnectionTitle | Gets or sets the text displayed as the title of a subsection of the connection user interface (UI) created by a ConnectionsZone control. |
![]() | ConfigureVerb | Gets a reference to a WebPartVerb object used to open the configuration view in the connection user interface (UI). |
![]() | ConnectToConsumerInstructionText | Gets or sets the instructional text displayed in the section of the connection user interface (UI) where users select a consumer connection point that the provider will connect to. |
![]() | ConnectToConsumerText | Gets or sets the text of a hyperlink that users click to open a view in which they can choose a consumer control for a connection. |
![]() | ConnectToConsumerTitle | Gets or sets the title text of the section in the connection user interface (UI) in which users can select a specific consumer to connect with. |
![]() | ConnectToProviderInstructionText | Gets or sets the instructional text displayed in the section of the connection user interface (UI) where users select a provider connection point that the consumer will connect to. |
![]() | ConnectToProviderText | Gets or sets the text of a hyperlink that users click to open a view in which they can choose a provider control for a connection. |
![]() | ConnectToProviderTitle | Gets or sets the title text of the section in the connection user interface (UI) in which users can select a specific provider to connect with. |
![]() | ConnectVerb | Gets a reference to a WebPartVerb object that enables two WebPart controls to establish a connection. |
![]() | ConsumersInstructionText | Gets or sets the instructional text shown in the consumers section of the connection user interface (UI), when a connection already exists. |
![]() | ConsumersTitle | Gets or sets the title shown above the consumers section of the connection user interface (UI), when a connection already exists. |
![]() | Context | Gets the HttpContext object associated with the server control for the current Web request. (Inherited from Control.) |
![]() | Controls | Gets a ControlCollection object that represents the child controls in a CompositeControl. (Inherited from CompositeControl.) |
![]() | ControlStyle | Gets the style of the Web server control. This property is used primarily by control developers. (Inherited from WebControl.) |
![]() | ControlStyleCreated | Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers. (Inherited from WebControl.) |
![]() | CssClass | Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client. (Inherited from WebControl.) |
![]() | DataItemContainer | Gets a reference to the naming container if the naming container implements IDataItemContainer. (Inherited from Control.) |
![]() | DataKeysContainer | Gets a reference to the naming container if the naming container implements IDataKeysControl. (Inherited from Control.) |
![]() | DesignMode | Gets a value indicating whether a control is being used on a design surface. (Inherited from Control.) |
![]() | DisconnectVerb | Gets a reference to a WebPartVerb object that enables a user to disconnect two connected WebPart controls. |
![]() | Display | Gets a value that indicates whether a ToolZone control is currently displayed. (Overrides ToolZone::Display.) |
![]() | EditUIStyle | Gets the style attributes for the editable controls contained in a ToolZone control. (Inherited from ToolZone.) |
![]() | EmptyZoneText | Gets or sets a text message that is displayed in an empty ConnectionsZone control if there are insufficient controls on a Web page to establish a connection. (Overrides WebZone::EmptyZoneText.) |
![]() | EmptyZoneTextStyle | Gets the style attributes for the placeholder text in an empty zone. (Inherited from WebZone.) |
![]() | Enabled | Gets or sets a value indicating whether the Web server control is enabled. (Inherited from WebControl.) |
![]() | EnableTheming | Gets or sets a value indicating whether themes apply to this control. (Inherited from WebControl.) |
![]() | EnableViewState | Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. (Inherited from Control.) |
![]() | ErrorStyle | Gets the style attributes for rendering the error message that is displayed if a WebPart control cannot be loaded or created. (Inherited from WebZone.) |
![]() | Events | Gets a list of event handler delegates for the control. This property is read-only. (Inherited from Control.) |
![]() | ExistingConnectionErrorMessage | Gets or sets the text of a message displayed in the connection user interface (UI) when there is an error or warning on an existing connection. |
![]() | Font | Gets the font properties associated with the Web server control. (Inherited from WebControl.) |
![]() | FooterStyle | Gets the style attributes for the contents of a zone's footer area. (Inherited from WebZone.) |
![]() | ForeColor | Gets or sets the foreground color (typically the color of the text) of the Web server control. (Inherited from WebControl.) |
![]() | GetFromText | Gets or sets the text shown in the section of the connection user interface (UI) that precedes the named provider from which a consumer will retrieve data. |
![]() | GetText | Gets or sets the text shown in the section of the connection user interface (UI) that precedes the named consumer that will receive data from a provider. |
![]() | HasAttributes | Gets a value indicating whether the control has attributes set. (Inherited from WebControl.) |
![]() | HasChildViewState | Gets a value indicating whether the current server control's child controls have any saved view-state settings. (Inherited from Control.) |
![]() | HasFooter | Gets a value indicating whether a zone has a footer area. (Inherited from WebZone.) |
![]() | HasHeader | Gets a value indicating whether a zone has a header area. (Inherited from WebZone.) |
![]() | HeaderCloseVerb | Gets a reference to the WebPartVerb object in the header of a ToolZone control that is used to close the control. (Inherited from ToolZone.) |
![]() | HeaderStyle | Gets the style attributes for the contents of a zone's header area. (Inherited from WebZone.) |
![]() | HeaderText | Gets or sets the header text that appears at the top of the connection user interface (UI) created by the ConnectionsZone control. (Overrides WebZone::HeaderText.) |
![]() | HeaderVerbStyle | Gets the style attributes for all header verbs displayed in a ToolZone control. (Inherited from ToolZone.) |
![]() | Height | Gets or sets the height of the Web server control. (Inherited from WebControl.) |
![]() | ID | Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.) |
![]() | IdSeparator | Infrastructure. Gets the character used to separate control identifiers. (Inherited from Control.) |
![]() | InstructionText | Gets or set the text that is used for general instructions about the selected control in the section of the connection user interface (UI) for managing existing connections. (Overrides ToolZone::InstructionText.) |
![]() | InstructionTextStyle | Gets the style attributes for the instruction text that appears at the top of a ToolZone control. (Inherited from ToolZone.) |
![]() | InstructionTitle | Gets or sets the text that is used for a general description of the action that can be performed on the consumer or provider control, within the connection user interface (UI) for managing existing connections. |
![]() | IsChildControlStateCleared | Gets a value indicating whether controls contained within this control have control state. (Inherited from Control.) |
![]() | IsEnabled | Gets a value indicating whether the control is enabled. (Inherited from WebControl.) |
![]() | IsTrackingViewState | Gets a value that indicates whether the server control is saving changes to its view state. (Inherited from Control.) |
![]() | IsViewStateEnabled | Gets a value indicating whether view state is enabled for this control. (Inherited from Control.) |
![]() | LabelStyle | Gets the style attributes for the contents of the labels that appear alongside the editing controls within a ToolZone control. The derived ToolZone controls, such as CatalogZone and EditorZone, apply the styles to the labels. (Inherited from ToolZone.) |
![]() | LoadViewStateByID | Gets a value indicating whether the control participates in loading its view state by ID instead of index. (Inherited from Control.) |
![]() | NamingContainer | Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control::ID property value. (Inherited from Control.) |
![]() | NewConnectionErrorMessage | Gets or sets the text of a message displayed in the connection user interface (UI) when there is an error or warning on a new connection that a user tries to create. |
![]() | NoExistingConnectionInstructionText | Gets or sets the instruction text that appears in the body of the connection user interface (UI) when a Web Parts control has no existing connection. |
![]() | NoExistingConnectionTitle | Gets or sets the title text that appears in the body of the connection user interface (UI) when a Web Parts control has no existing connection. |
![]() | Padding | Gets or sets the cell padding attributes on the table that contains the WebPart controls in a zone. (Inherited from WebZone.) |
![]() | Page | Gets a reference to the Page instance that contains the server control. (Inherited from Control.) |
![]() | Parent | Gets a reference to the server control's parent control in the page control hierarchy. (Inherited from Control.) |
![]() | PartChromePadding | Gets or sets the distance between the contents of a WebPart control and the border of the control. (Inherited from WebZone.) |
![]() | PartChromeStyle | Gets style characteristics that apply to the borders of Web Parts controls contained by a zone. (Inherited from WebZone.) |
![]() | PartChromeType | Gets or sets the type of border that frames the server controls contained in a ConnectionsZone control. (Overrides WebZone::PartChromeType.) |
![]() | PartStyle | Gets style characteristics that apply to the border and contents of each Web Parts control contained by a zone. (Inherited from WebZone.) |
![]() | PartTitleStyle | Gets style attributes for the title bar content for each Web Parts control contained by a zone. (Inherited from WebZone.) |
![]() | ProvidersInstructionText | Gets or sets the instructional text shown in the providers section of the connection user interface (UI), when a connection already exists. |
![]() | ProvidersTitle | Gets or sets the title shown above the providers section of the connection user interface (UI), when a connection already exists. |
![]() | RenderClientScript | Gets a value that indicates whether to render client script on a Web Parts page. (Inherited from WebZone.) |
![]() | RenderingCompatibility | Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with. (Inherited from Control.) |
![]() | SendText | Gets or sets the text shown in the section of the connection user interface (UI) that precedes the named provider that will send data to a consumer. |
![]() | SendToText | Gets or sets the text shown in the section of the connection user interface (UI) that precedes the named consumer to which a provider will send data. |
![]() | Site | Gets information about the container that hosts the current control when rendered on a design surface. (Inherited from Control.) |
![]() | SkinID | Gets or sets the skin to apply to the control. (Inherited from WebControl.) |
![]() | Style | Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control. (Inherited from WebControl.) |
![]() | SupportsDisabledAttribute | Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false. (Inherited from CompositeControl.) |
![]() | TabIndex | Gets or sets the tab index of the Web server control. (Inherited from WebControl.) |
![]() | TagKey | Gets the HtmlTextWriterTag value that corresponds to this Web server control. This property is used primarily by control developers. (Inherited from WebZone.) |
![]() | TagName | Gets the name of the control tag. This property is used primarily by control developers. (Inherited from WebControl.) |
![]() | TemplateControl | Gets or sets a reference to the template that contains this control. (Inherited from Control.) |
![]() | TemplateSourceDirectory | Gets the virtual directory of the Page or UserControl that contains the current server control. (Inherited from Control.) |
![]() | ToolTip | Gets or sets the text displayed when the mouse pointer hovers over the Web server control. (Inherited from WebControl.) |
![]() | UniqueID | Gets the unique, hierarchically qualified identifier for the server control. (Inherited from Control.) |
![]() | VerbButtonType | Gets or sets what kind of button is used to represent verbs in a zone. (Inherited from WebZone.) |
![]() | VerbStyle | Gets the style attributes for the user interface (UI) verbs associated with Web Parts controls in a zone. (Inherited from WebZone.) |
![]() | ViewState | Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. (Inherited from Control.) |
![]() | ViewStateIgnoresCase | Gets a value that indicates whether the StateBag object is case-insensitive. (Inherited from Control.) |
![]() | ViewStateMode | Gets or sets the view-state mode of this control. (Inherited from Control.) |
![]() | Visible | Gets or sets a value that indicates whether a server control is rendered as a user interface (UI) element on the page. (Inherited from ToolZone.) |
![]() | WebPartManager | Gets a reference to the WebPartManager control associated with a WebZone control instance on a Web Parts page. (Inherited from WebZone.) |
![]() | WebPartToConnect | Gets the currently selected WebPart control to connect to. |
![]() | Width | Gets or sets the width of the Web server control. (Inherited from WebControl.) |
| Name | Description | |
|---|---|---|
![]() | AddAttributesToRender | Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag. This method is used primarily by control developers. (Inherited from WebControl.) |
![]() | AddedControl | Called after a child control is added to the Controls collection of the Control object. (Inherited from Control.) |
![]() | AddParsedSubObject | Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object. (Inherited from Control.) |
![]() | ApplyStyle | Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers. (Inherited from WebControl.) |
![]() | ApplyStyleSheetSkin | Applies the style properties defined in the page style sheet to the control. (Inherited from Control.) |
![]() | BuildProfileTree | Infrastructure. Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page. (Inherited from Control.) |
![]() | ClearCachedClientID | Infrastructure. Sets the cached ClientID value to nullptr. (Inherited from Control.) |
![]() | ClearChildControlState | Deletes the control-state information for the server control's child controls. (Inherited from Control.) |
![]() | ClearChildState | Deletes the view-state and control-state information for all the server control's child controls. (Inherited from Control.) |
![]() | ClearChildViewState | Deletes the view-state information for all the server control's child controls. (Inherited from Control.) |
![]() | ClearEffectiveClientIDMode | Infrastructure. Sets the ClientIDMode property of the current control instance and of any child controls to Inherit. (Inherited from Control.) |
![]() | Close | Closes the connection user interface (UI) created by the ConnectionsZone control. (Overrides ToolZone::Close().) |
![]() | CopyBaseAttributes | Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers. (Inherited from WebControl.) |
![]() | CreateChildControls | Creates all child controls contained in a ConnectionsZone control in preparation for posting back to the server or rendering. (Overrides Control::CreateChildControls().) |
![]() | CreateControlCollection | Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control. (Inherited from Control.) |
![]() | CreateControlStyle | Creates the style object that is used internally by the WebControl class to implement all style related properties. This method is used primarily by control developers. (Inherited from WebControl.) |
![]() | DataBind() | Binds a data source to the CompositeControl and all its child controls. (Inherited from CompositeControl.) |
![]() | DataBind(Boolean) | Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event. (Inherited from Control.) |
![]() | DataBindChildren | Binds a data source to the server control's child controls. (Inherited from Control.) |
![]() | Dispose | Enables a server control to perform final clean up before it is released from memory. (Inherited from Control.) |
![]() | EnsureChildControls | Determines whether the server control contains child controls. If it does not, it creates child controls. (Inherited from Control.) |
![]() | EnsureID | Creates an identifier for controls that do not have an identifier assigned. (Inherited from Control.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindControl(String) | Searches the current naming container for a server control with the specified id parameter. (Inherited from Control.) |
![]() | FindControl(String, Int32) | Infrastructure. Searches the current naming container for a server control with the specified id and an integer, specified in the pathOffset parameter, which aids in the search. You should not override this version of the FindControl method. (Inherited from Control.) |
![]() | Focus | Sets input focus to a control. (Inherited from Control.) |
![]() | GetDesignModeState | Infrastructure. Gets design-time data for a control. (Inherited from Control.) |
![]() | GetEffectiveChromeType | Returns the actual or effective current PartChromeType value of a WebPart control, given the PartChromeType property of the zone and the current display mode of the Web Parts page. (Inherited from WebZone.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetRouteUrl(Object) | Gets the URL that corresponds to a set of route parameters. (Inherited from Control.) |
![]() | GetRouteUrl(RouteValueDictionary) | Gets the URL that corresponds to a set of route parameters. (Inherited from Control.) |
![]() | GetRouteUrl(String, Object) | Gets the URL that corresponds to a set of route parameters and a route name. (Inherited from Control.) |
![]() | GetRouteUrl(String, RouteValueDictionary) | Gets the URL that corresponds to a set of route parameters and a route name. (Inherited from Control.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUniqueIDRelativeTo | Returns the prefixed portion of the UniqueID property of the specified control. (Inherited from Control.) |
![]() | HasControls | Determines if the server control contains any child controls. (Inherited from Control.) |
![]() | HasEvents | Returns a value indicating whether events are registered for the control or any child controls. (Inherited from Control.) |
![]() | IsLiteralContent | Infrastructure. Determines if the server control holds only literal content. (Inherited from Control.) |
![]() | LoadControlState | Restores control state information from a previous page request that was saved by the SaveControlState method. (Overrides Control::LoadControlState(Object).) |
![]() | LoadViewState | Restores view-state information from a previous page request that was saved by the SaveViewState method. (Overrides ToolZone::LoadViewState(Object).) |
![]() | MapPathSecure | Retrieves the physical path that a virtual path, either absolute or relative, maps to. (Inherited from Control.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MergeStyle | Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is used primarily by control developers. (Inherited from WebControl.) |
![]() | OnBubbleEvent | Determines whether the event for the server control is passed up the page's UI server control hierarchy. (Inherited from Control.) |
![]() | OnDataBinding | Raises the DataBinding event. (Inherited from Control.) |
![]() | OnDisplayModeChanged | Raises the DisplayModeChanged event. (Overrides ToolZone::OnDisplayModeChanged(Object, WebPartDisplayModeEventArgs).) |
![]() | OnInit | Raises the Init event. (Overrides ToolZone::OnInit(EventArgs).) |
![]() | OnLoad | Raises the Load event. (Inherited from Control.) |
![]() | OnPreRender | Raises the PreRender event. (Inherited from WebZone.) |
![]() | OnSelectedWebPartChanged | Raises the SelectedWebPartChanged event. (Overrides ToolZone::OnSelectedWebPartChanged(Object, WebPartEventArgs).) |
![]() | OnUnload | Raises the Unload event. (Inherited from Control.) |
![]() | OpenFile | Gets a Stream used to read a file. (Inherited from Control.) |
![]() | RaiseBubbleEvent | Assigns any sources of the event and its information to the control's parent. (Inherited from Control.) |
![]() | RaisePostBackEvent | Raises an event for the ConnectionsZone control when the form that contains it posts back to the server. (Overrides ToolZone::RaisePostBackEvent(String).) |
![]() | RecreateChildControls | Recreates the child controls in a control derived from CompositeControl. (Inherited from CompositeControl.) |
![]() | RemovedControl | Called after a child control is removed from the Controls collection of the Control object. (Inherited from Control.) |
![]() | Render | Renders the contents of the ConnectionsZone control to the specified HtmlTextWriter object. (Overrides CompositeControl::Render(HtmlTextWriter).) |
![]() | RenderBeginTag | Renders the opening HTML tag of the zone control to the specified HtmlTextWriter object. (Inherited from WebZone.) |
![]() | RenderBody | Sends the content of a ConnectionsZone control's body area to the specified HtmlTextWriter object, which writes the content to the Web page. (Overrides WebZone::RenderBody(HtmlTextWriter).) |
![]() | RenderChildren | Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client. (Inherited from Control.) |
![]() | RenderContents | Renders the entire contents of a zone control between the beginning and ending tags to the specified HtmlTextWriter object. (Inherited from WebZone.) |
![]() | RenderControl(HtmlTextWriter) | Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled. (Inherited from Control.) |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object. (Inherited from Control.) |
![]() | RenderEndTag | Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers. (Inherited from WebControl.) |
![]() | RenderFooter | Overrides the base method to render verbs in the footer of a ToolZone control. (Inherited from ToolZone.) |
![]() | RenderHeader | Overrides the base method to provide specialized rendering for the header area required by ToolZone controls. (Inherited from ToolZone.) |
![]() | RenderVerb | Renders an individual verb with a ToolZone control. (Inherited from ToolZone.) |
![]() | RenderVerbs | Renders the zone-level verbs for a ConnectionsZone control. (Overrides ToolZone::RenderVerbs(HtmlTextWriter).) |
![]() | ResolveAdapter | Gets the control adapter responsible for rendering the specified control. (Inherited from Control.) |
![]() | ResolveClientUrl | Gets a URL that can be used by the browser. (Inherited from Control.) |
![]() | ResolveUrl | Converts a URL into one that is usable on the requesting client. (Inherited from Control.) |
![]() | SaveControlState | Saves any Web Parts control state changes that occurred since the last time the page was posted back to the server. (Overrides Control::SaveControlState().) |
![]() | SaveViewState | Saves a ConnectionsZone control's view-state changes that occurred since the page was last posted back to the server. (Overrides ToolZone::SaveViewState().) |
![]() | SetDesignModeState | Sets design-time data for a control. (Inherited from Control.) |
![]() | SetRenderMethodDelegate | Infrastructure. Assigns an event handler delegate to render the server control and its content into its parent control. (Inherited from Control.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TrackViewState | Tracks view-state changes to the ConnectionsZone control so the changes can be stored in the control's StateBag object. (Overrides ToolZone::TrackViewState().) |
| Name | Description | |
|---|---|---|
![]() | DataBinding | Occurs when the server control binds to a data source. (Inherited from Control.) |
![]() | Disposed | Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested. (Inherited from Control.) |
![]() | Init | Occurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.) |
![]() | Load | Occurs when the server control is loaded into the Page object. (Inherited from Control.) |
![]() | PreRender | Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.) |
![]() | Unload | Occurs when the server control is unloaded from memory. (Inherited from Control.) |
| Name | Description | |
|---|---|---|
![]() | FindDataSourceControl | Returns the data source that is associated with the data control for the specified control. (Defined by DynamicDataExtensions.) |
![]() | FindFieldTemplate | Returns the field template for the specified column in the specified control's naming container. (Defined by DynamicDataExtensions.) |
![]() | FindMetaTable | Returns the metatable object for the containing data control. (Defined by DynamicDataExtensions.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IAttributeAccessor::GetAttribute | Infrastructure. Gets an attribute of the Web control with the specified name. (Inherited from WebControl.) |
![]() ![]() | IAttributeAccessor::SetAttribute | Sets an attribute of the Web control to the specified name and value. (Inherited from WebControl.) |
![]() ![]() | ICompositeControlDesignerAccessor::RecreateChildControls | Enables a designer to recreate the composite control's collection of child controls in the design-time environment. (Inherited from CompositeControl.) |
![]() ![]() | IControlBuilderAccessor::ControlBuilder | For a description of this member, see IControlBuilderAccessor::ControlBuilder. (Inherited from Control.) |
![]() ![]() | IControlDesignerAccessor::GetDesignModeState | For a description of this member, see IControlDesignerAccessor::GetDesignModeState. (Inherited from Control.) |
![]() ![]() | IControlDesignerAccessor::SetDesignModeState | For a description of this member, see IControlDesignerAccessor::SetDesignModeState. (Inherited from Control.) |
![]() ![]() | IControlDesignerAccessor::SetOwnerControl | Infrastructure. For a description of this member, see IControlDesignerAccessor::SetOwnerControl. (Inherited from Control.) |
![]() ![]() | IControlDesignerAccessor::UserData | For a description of this member, see IControlDesignerAccessor::UserData. (Inherited from Control.) |
![]() ![]() | IDataBindingsAccessor::DataBindings | For a description of this member, see IDataBindingsAccessor::DataBindings. (Inherited from Control.) |
![]() ![]() | IDataBindingsAccessor::HasDataBindings | For a description of this member, see IDataBindingsAccessor::HasDataBindings. (Inherited from Control.) |
![]() ![]() | IExpressionsAccessor::Expressions | For a description of this member, see IExpressionsAccessor::Expressions. (Inherited from Control.) |
![]() ![]() | IExpressionsAccessor::HasExpressions | For a description of this member, see IExpressionsAccessor::HasExpressions. (Inherited from Control.) |
![]() ![]() | IParserAccessor::AddParsedSubObject | For a description of this member, see IParserAccessor::AddParsedSubObject. (Inherited from Control.) |
![]() ![]() | IPostBackEventHandler::RaisePostBackEvent | Infrastructure. Implements the RaisePostBackEvent method. (Inherited from ToolZone.) |
Using the Web Parts control set, you can enable two server controls to form a connection and share data, with one control acting as the provider, and the other acting as the consumer of the data. The two controls can be WebPart controls or any other type of server control, provided that they are designed to handle connections, and that they are residing in a WebPartZoneBase zone. To learn more about Web Parts connections, see the WebPartConnection and ConnectionPoint class overviews, as well as Web Parts Connections Overview.
Provided that the requisite controls and conditions exist to form a Web Parts connection, it is still necessary to actually connect the controls. There are three ways to form a connection between server controls: declaring a connection in a Web page, creating a connection in code, or adding a ConnectionsZone control to the page so that users can connect the controls on demand. The ConnectionsZone control generates a UI that enables users to connect or disconnect any server controls on a page that meet the conditions necessary to form a connection. It is an optional control that is not necessary to form connections, but is useful in the case where you want to give users control over which server controls are connected or disconnected.
The ConnectionsZone control is one of the Web Parts tool zone controls that inherit from the ToolZone base class. As a tool zone, the ConnectionsZone control is designed to be visible only when its Web page is in a certain display mode. In this case, the display mode is named connect mode (a page is in this mode when the WebPartManager control on the page has its DisplayMode property value set to ConnectDisplayMode). After users switch a page into connect mode, they must click a connect verb on the verbs menu of one of the server controls, and then the connection UI becomes visible.
As a Web Parts zone control, the ConnectionsZone control is a type of WebZone zone (which inherits from the CompositeControl class) designed to contain other controls. In general, a ConnectionsZone zone has most of the same elements as other Web Parts tool zones: a header, a body or contents area, and a footer. For a complete discussion of what a Web Parts zone is, and the different parts of a zone, see the WebZone class overview.
Important |
|---|
Unlike most other Web Parts zones, it is important to note that a ConnectionsZone zone does not contain a unique type of server control associated with it. For a list of zones and the associated controls they contain, see the chart in the WebZone class overview. But the ConnectionsZone zone does not contain WebPartConnection controls. Instead, it serves a very limited purpose of providing a UI for users to connect or disconnect server controls that exist in some WebPartZoneBase zone on the page. The only controls contained in a ConnectionsZone control are the standard ASP.NET server controls that it generates as part of its UI for forming connections. |
When the ConnectionsZone control is rendered, it generates a UI based on the server controls on the page that are capable of forming connections. The ConnectionsZone control determines which server controls in the WebPartZoneBase zone on the page are providers, which are consumers, which connection points are available, and whether the server controls are currently connected or disconnected, and then it generates the UI accordingly.
For example, suppose there is one WebPart control capable of being a provider, one WebPart control capable of being a consumer, they are declared in a WebPartZone on the page, and they are currently disconnected. When a user switches the page to connect mode and clicks the connect verb on one of the controls, the ConnectionsZone control generates a UI with a link that, when clicked, displays a form in which users can choose options to create a connection. (If the controls were previously connected, the initial view instead presents users with a button to disconnect the controls). In the connection UI for creating new connections, users are shown which control is a provider, and which control is a consumer. A drop-down list control appears below each server control, listing the available ConnectionPoint objects for the control. From the respective drop-down lists, users must select one ProviderConnectionPoint object for the provider (to determine what interface and data will be shared with consumers), and one ConsumerConnectionPoint object for each consumer (to determine what interface and data the consumer will consume) that will be connected to the provider.
Note |
|---|
In the Web Parts control set default implementation, one provider can connect to many consumers, but a consumer can have only one provider. |
To use the ConnectionsZone control, you can declare it within the <form> element on a Web page (but not nested within another Web Parts zone element), using the <asp:connectionszone> element, or you can add it to the page programmatically. If you declare the element in a page, unlike the other Web Parts zones, you cannot declare any other type of server controls between the tags of the <asp:connectionszone> element. You can declare elements within it that relate to its own properties and style details, but it is a standalone element and is not a template control within which other server controls can be declared.
Note |
|---|
To improve accessibility, the ConnectionsZone control is rendered within a <fieldset> element. The <fieldset> element groups the related set of controls used for establishing connections in the ConnectionsZone control, and it facilitates tabbed navigation among those controls for both visual user agents (such as ordinary Web browsers) and speech-oriented user agents (such as screen-reading software). |
The ConnectionsZone control has a number of properties it uses for rendering the connection UI. One set of properties includes several verbs--used only in relation to connections--that carry out actions in the UI: ConfigureVerb, ConnectVerb, and DisconnectVerb. A large set of properties, used especially for the connections zone UI, consists of text strings displayed at various places (or in certain situations, such as when errors occur) in the UI: ConfigureConnectionTitle, ConnectToConsumerInstructionText, ConnectToConsumerText, ConnectToConsumerTitle, ConnectToProviderInstructionText, ConnectToProviderText, ConnectToProviderTitle, ConsumersInstructionText, ConsumersTitle, ExistingConnectionErrorMessage, GetFromText, GetText, InstructionTitle, NewConnectionErrorMessage, NoExistingConnectionInstructionText, NoExistingConnectionTitle, ProvidersInstructionText, ProvidersTitle, SendText, and SendToText. The ConnectionsZone class also contains a number of common properties found in other Web Parts zones: CancelVerb, CloseVerb, Display, EmptyZoneText, HeaderText, InstructionText, and PartChromeType. Finally, the WebPartToConnect property is unique to the class, referencing the control that initiates the connection (this is the control on which the user clicks the connect verb in its verbs menu, which is also the control referenced in the WebPartManager control's SelectedWebPart property).
The ConnectionsZone class also has a number of methods, all of which are inherited and overridden from base classes, and most of them come from the base Web Parts zone classes. For details, see the individual methods.
Notes to InheritorsThe ConnectionsZone class can be extended, if developers want to change its behavior or the default UI that it provides for working with connections.
The following code example demonstrates how to use the ConnectionsZone control on a Web Parts page. The example has four parts:
A user control that enables you to switch display modes on the Web page.
A source file that contains the code for a ZIP Code interface, and two WebPart controls acting as the provider and the consumer for a connection.
A Web page that hosts all the controls, demonstrates how to declare an <asp:connectionszone> element, and sets a number of properties on the connections zone declaratively and programmatically.
An explanation of how the example works in a browser.
The first part of this code example is the user control that enables users to switch display modes on a Web page. For details about display modes and a description of the source code in this control, see Walkthrough: Changing Display Modes on a Web Parts Page.
The second part of the example is the source file with the interface and custom controls. Notice that the ZipCodeWebPart control implements the IZipCode interface, adding a ConnectionProvider attribute so that the control can act as a provider for a connection. The WeatherWebPart control has a method marked with a ConnectionConsumer attribute, where it consumes the IZipCode interface, so it can act as a consumer in a connection.
For the code example to run, you must compile this source code. You can compile it explicitly and put the resulting assembly in your Web site's Bin folder or the global assembly cache. Alternatively, you can put the source code in your site's App_Code folder, where it will be dynamically compiled at run time. This example uses dynamic compilation. For a walkthrough that demonstrates how to compile, see Walkthrough: Developing and Using a Custom Web Server Control.
The third part of the example code is the Web page. Near the top are Register directives for the user control and the custom controls used in the connection. An <asp:connectionszone> element is declared in the page as an example of using the ConnectionsZone control declaratively. Within the element, a number of properties are set declaratively. Other properties on the connections zone are set programmatically in the <script> section of the page.
Load the Web page in a browser. Use the Display Mode drop-down list control to switch the page to connect mode. On the verbs menu of the ZIP Code Provider control (the verbs menu is indicated by the downward arrow in the control's title bar), click the connect verb. A ConnectionsZone control appears. Note that in the connection UI, an End Connection button appears; the connection has already been declared in the markup of the page, so the controls are already connected. Click End Connection, and then use the Display Mode control again to return the page to browse mode. Next, return the page to connect mode again, click the connect verb on one of the controls, and note that the connection UI now displays a hyperlink that enables you to form a connection between the controls. Click the link, and use the connection UI to select connection points and establish the connection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.









Important
Note