다음을 통해 공유


ImportCatalogPart.UploadHelpText 속성

정의

사용자에게 설명 파일의 업로드 방법을 알려 주는 메시지 텍스트를 가져오거나 설정합니다.

public:
 property System::String ^ UploadHelpText { System::String ^ get(); void set(System::String ^ value); };
public string UploadHelpText { get; set; }
member this.UploadHelpText : string with get, set
Public Property UploadHelpText As String

속성 값

사용자에게 설명 파일을 업로드하는 방법을 알려 주는 데 사용되는 문자열입니다. 기본값은 웹 파트 컨트롤 집합에서 제공하는 culture별 문자열입니다.

예제

다음 코드 예제를 사용 UploadHelpText 하는 방법에 설명 합니다 선언적이 고 프로그래밍 방식으로 속성입니다. 예제를 실행하는 데 필요한 전체 코드 및 지침은 클래스 개요의 예제 섹션을 ImportCatalogPart 참조하세요.

다음 코드 섹션에서는 속성 값이 컨트롤에 UploadHelpText 대해 선언적으로 설정되어 있는지 확인합니다.

<asp:CatalogZone ID="CatalogZone1" runat="server">
  <ZoneTemplate>
    <asp:ImportCatalogPart ID="ImportCatalogPart1" 
      runat="server" 
      Title="My ImportCatalogPart" 
      OnPreRender="ImportCatalogPart1_PreRender"
      BrowseHelpText="Type a path or browse to find a control's 
        description file." 
      UploadButtonText="Upload Description File" 
      UploadHelpText="Click the button to upload the description 
        file."
      ImportedPartLabelText="My User Information WebPart" 
      PartImportErrorLabelText="An error occurred while trying 
        to import a description file."  />
  </ZoneTemplate>
</asp:CatalogZone>
<asp:CatalogZone ID="CatalogZone1" runat="server">
  <ZoneTemplate>
    <asp:ImportCatalogPart ID="ImportCatalogPart1" 
      runat="server" 
      Title="My ImportCatalogPart" 
      OnPreRender="ImportCatalogPart1_PreRender"
      BrowseHelpText="Type a path or browse to find a control's 
        description file." 
      UploadButtonText="Upload Description File" 
      UploadHelpText="Click the button to upload the description 
        file."
      ImportedPartLabelText="My User Information WebPart" 
      PartImportErrorLabelText="An error occurred while trying 
        to import a description file."  />
  </ZoneTemplate>
</asp:CatalogZone>

이 코드 섹션에서는 속성 값이 UploadHelpText 프로그래밍 방식으로 할당됩니다.

protected void Button1_Click(object sender, EventArgs e)
{
  ImportCatalogPart1.Title = "Import Server Controls";
  ImportCatalogPart1.BrowseHelpText = "Enter the path to a "
    + "description file.";
  ImportCatalogPart1.UploadButtonText = "Upload Description";
  ImportCatalogPart1.UploadHelpText = "Upload a description file.";
  ImportCatalogPart1.ImportedPartLabelText = "Imported Controls";
  ImportCatalogPart1.PartImportErrorLabelText = "An error occurred " 
    + "during the import process.";

}
Protected Sub Button1_Click(ByVal sender As Object, _
  ByVal e As EventArgs)
    ImportCatalogPart1.Title = "Import Server Controls"
    ImportCatalogPart1.BrowseHelpText = "Enter the path to a " _
      & "description file."
    ImportCatalogPart1.UploadButtonText = "Upload Description"
    ImportCatalogPart1.UploadHelpText = "Upload a description file."
    ImportCatalogPart1.ImportedPartLabelText = "Imported Controls"
    ImportCatalogPart1.PartImportErrorLabelText = "An error occurred " _
      & "during the import process."
End Sub

브라우저에서 페이지를 로드할 때 표시 모드 드롭다운 목록 컨트롤을 사용하여 카탈로그 모드 를 선택하고 페이지를 카탈로그 모드로 전환할 수 있습니다. 카탈로그 모드의 페이지와 설명 파일이 업로드되면 컨트롤의 UI(사용자 인터페이스)에 표시되는 다양한 텍스트 문자열을 ImportCatalogPart 확인합니다. 설명 파일 업로드 단추를 클릭하면 속성의 텍스트를 포함하여 UI의 여러 속성에 대한 텍스트가 UploadHelpText 변경됩니다.

설명

속성은 UploadHelpText 설명 파일을 업로드하는 단추를 클릭하라고 지시하는 간단한 문장 또는 명령 구를 사용자에게 제공합니다. 이 속성 또는 속성에 사용자 지정 텍스트를 할당하는 UploadButtonText 경우 텍스트는 사용자가 설명 파일을 업로드하고 있음을 분명히 해야 합니다. 텍스트는 업로드 프로세스가 실제로 컨트롤 자체를 업로드하고 있음을 말하거나 암시해서는 안 됩니다.

적용 대상

추가 정보