ImportCatalogPart.PartImportErrorLabelText Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İçeri aktarma işlemi sırasında bir hata oluşursa görüntülenen bir hata iletisini alır veya ayarlar.
public:
property System::String ^ PartImportErrorLabelText { System::String ^ get(); void set(System::String ^ value); };
public string PartImportErrorLabelText { get; set; }
member this.PartImportErrorLabelText : string with get, set
Public Property PartImportErrorLabelText As String
Özellik Değeri
Etiketin metnini içeren dize. Varsayılan değer, .NET Framework tarafından sağlanan kültüre özgü bir iletidir.
Örnekler
Aşağıdaki kod örneği, özelliğinin PartImportErrorLabelText bildirim temelli ve programlı olarak nasıl kullanılacağını gösterir. Örneği çalıştırmak için gereken tam kod ve yönergeler için, sınıfa genel bakışın ImportCatalogPart Örnek bölümüne bakın.
Kodun aşağıdaki bölümünde, özellik değerinin PartImportErrorLabelText denetim için bildirim temelli olarak ayarlandığına dikkat edin.
<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>
Kodun bu bölümünde, PartImportErrorLabelText özellik değeri program aracılığıyla atanır.
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
Sayfayı bir tarayıcıya yüklediğinizde, Görüntü Modu açılan liste denetimini kullanarak Katalog Modu'nu seçebilir ve sayfayı katalog moduna geçirebilirsiniz. Sayfa katalog modunda ve açıklama dosyası karşıya yüklendiğinde, denetimin kullanıcı arabiriminde (UI) ImportCatalogPart görüntülenen çeşitli metin dizelerini not edin. Açıklama Dosyasını Karşıya Yükle düğmesine tıklarsanız, özelliğin metni de dahil olmak üzere kullanıcı arabirimindeki özelliklerin birkaçının PartImportErrorLabelText metni değiştirilir.
Açıklamalar
özelliği PartImportErrorLabelText , sayfa bir açıklama dosyasını içeri aktarmaya çalışırken bir sorun veya hata oluştuğunda kullanıcıya bildirimde bulunur.