ConnectionsZone.ConnectToProviderTitle Property

Note: This property is new in the .NET Framework version 2.0.

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.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public:
virtual property String^ ConnectToProviderTitle {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_ConnectToProviderTitle ()

/** @property */
public void set_ConnectToProviderTitle (String value)

public function get ConnectToProviderTitle () : String

public function set ConnectToProviderTitle (value : String)

Property Value

A string serving as the title of the section where users select providers. The default title is a culture-specific string supplied by the .NET Framework.

The ConnectToProviderTitle property takes effect in a specific connection scenario. When users click the connect verb on a consumer control, and no connection exists, they eventually arrive at a view in which they can select a provider to connect with the previously selected consumer. The title of this view is supplied by the ConnectToProviderTitle property.

You can set this property declaratively, by using the ConnectToProviderTitle attribute in the opening tag of the <asp:connectionszone> element in a page, or you can set the property programmatically.

The following code example demonstrates the use of the ConnectToProviderTitle 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 ConnectToProviderTitle property.

No code example is currently available or this language may not be supported.

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. Click the End Connection button to end the connection, and then click the link to select a provider. In the view for selecting a provider, note that the title text of the section is the text that the code assigns to the ConnectToProviderTitle property.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: