ConnectionsZone::NoExistingConnectionTitle Property
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.
Assembly: System.Web (in System.Web.dll)
public: property String^ NoExistingConnectionTitle { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^A string that contains the title text for the case where there is no existing connection. The default text is a culture-specific string supplied by the .NET Framework.
The text contained in the NoExistingConnectionTitle property is visible whenever the connection UI is displayed and no connection exists. After a user switches a page into connect display mode and clicks a connect verb on the verbs menu of a WebPart control, the main connection UI is displayed. If there is no current connection, the text from the NoExistingConnectionTitle property is displayed near the top of the body of the connection UI, just below the link that users can click to create a new connection. The title summarizes the fact that no connections exist, and the default title is No active connections.
You can set the value of this property declaratively within the opening tag of the <asp:connectionszone> element, by adding an attribute named NoExistingConnectionTitle and assigning it a value. You can also set the property value programmatically.
The following code example demonstrates the use of the NoExistingConnectionTitle property with a ConnectionsZone control. The example contains only the code for the Web page that demonstrates use of the property; for the other two code files needed to run the example, see the Example section of the ConnectionsZone class overview. The code example has four parts:
A user control that enables you to switch display modes on the Web page. Obtain this code from the ConnectionsZone class overview.
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. Obtain this code from the ConnectionsZone class overview.
A Web page that hosts all the controls, declares an <asp:connectionszone> element, and shows how to use the property programmatically.
An explanation of how the example works in a browser.
The Web page declares an <asp:connectionszone> element and, in the Page_PreRender method, the code assigns a value to the NoExistingConnectionTitle property.
Load the page in a browser. Switch to connect mode, using the Display Mode control. Click the verbs menu arrow on the ZIP Code Consumer control, and click the connect verb. In the view that opens for the existing connection, click the End Connection button. Note that the instruction title for no existing connections occurs just below the link that enables users to create a new connection.
Available since 2.0