ImportCatalogPart.UploadButtonText Property

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

Gets or sets the text for the Button control that initiates the upload of a description file.

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

public:
property String^ UploadButtonText {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_UploadButtonText ()

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

public function get UploadButtonText () : String

public function set UploadButtonText (value : String)

Property Value

A string that is used as the text for a Button. The default value is a culture-specific string supplied by the Web Parts control set.

The UploadButtonText property provides the text for the Button control that initiates the upload process. If you assign custom text to this property, or to the UploadHelpText property, the text should make clear that the user is uploading a description file. The text should not say or imply that the upload process is actually uploading the control itself.

The following code example demonstrates how to use the UploadButtonText 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 UploadButtonText 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 UploadButtonText 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 UploadButtonText 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: