- AppearanceEditorPart Web Server Control
in ASP.NET environment,This article describes you how to work with AppearanceEditorPart Web Control.The primary goal of the AppearanceEditorPart Web server control is allowing the end users to edit several user interface (UI) properties on an associated WebPart control.
WebPart Control Property using by AppearanceEditorPart
- Title -Set the text for the title.
- ChromeType -Select the title and border option type.
- Direction -Select the direction that content flows on the page.
- Height -Set the height
- Width -Set the Width
- Hidden -Hide or show the control is hidden.
set the AppearanceEditorPart control
The AppearanceEditorPart control is displayed only when a Web Parts page is in edit mode and when the user has selected an associated WebPart control for editing.
the following code snippets demonstrates how to work with the AppearanceEditorPart Control
in .aspx page,
-
<%@ register TagPrefix="uc1"
TagName="DisplayModeMenu"
Src="DisplayModecs.ascx" %>
<%@ register tagprefix="aspSample"
Namespace="Samples.AspNet.CS.Controls"
Assembly="TextDisplayWebPartCS" %>
<html>
<head id="Head1" runat="server">
<title>
Text Display WebPart with AppearanceEditorPart
</title>
</head>
<body>
<form id="form2" runat="server">
<asp:webpartmanager id="wp1" runat="server" />
<uc1:DisplayModeMenu ID="dm1" runat="server" />
<asp:webpartzone id="zone1" runat="server">
<zonetemplate>
<aspSample:TextDisplayWebPart
runat="server"
id="textwebpart"
title = "Text Content WebPart" />
</zonetemplate>
</asp:webpartzone>
<asp:EditorZone ID="ez1" runat="server">
<ZoneTemplate>
<asp:AppearanceEditorPart ID="AppearanceEditorPart1"
runat="server"
Title="Edit TextDisplayWebPart Properties" />
</ZoneTemplate>
</asp:EditorZone>
</form>
</body>
</html>
-
- Related Links
-
a87085e6-9b33-4863-8871-53cb7d458caa|0|.0