This documentation is archived and is not being maintained.

ImportCatalogPart::PartImportErrorLabelText Property

Gets or sets an error message that is displayed if an error occurs during the import process.

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

public:
property String^ PartImportErrorLabelText {
	String^ get ();
	void set (String^ value);
}
<asp:ImportCatalogPart PartImportErrorLabelText="String" />

Property Value

Type: System::String
A string that contains the text of the label. The default value is a culture-specific message supplied by the .NET Framework.

The PartImportErrorLabelText property is useful for notifying a user if some problem or error occurs while the page attempts to import a description file.

The following code example demonstrates how to use the PartImportErrorLabelText property declaratively and programmatically. For the full code and instructions required to run the example, see the Example section of the ImportCatalogPart class overview.

In the following section of code, notice that the PartImportErrorLabelText property value is set declaratively for the control.

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

In this section of code, the PartImportErrorLabelText property value is assigned programmatically.

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

When you load the page in a browser, you can use the Display Mode drop-down list control to select Catalog Mode and switch the page to catalog mode. With the page in catalog mode and the description file uploaded, note the various text strings displayed in the user interface (UI) for the ImportCatalogPart control. If you click the Upload Description File button, the text for several of the properties in the UI is changed, including the text for the PartImportErrorLabelText property.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Show: