ASP.NET Tutorial/WebPart/EditorZone

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Adding an Editor Zone to the page

   <source lang="csharp">

<%@ Page Language="VB"%> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server">

   <title>Web Parts Example</title>

</head> <body>

   <form id="form1" runat="server">
       <asp:WebPartManager ID="Webpartmanager1" Runat="server"/>
              <asp:CatalogZone ID="Catalogzone1" runat="server">
                 <ZoneTemplate>
                    <asp:PageCatalogPart ID="Pagecatalogpart1" runat="server" />
                 </ZoneTemplate>
              </asp:CatalogZone>
              <asp:EditorZone ID="Editorzone1" runat="server">
                 <ZoneTemplate>
                    <asp:AppearanceEditorPart ID="Appearanceeditorpart1" runat="server" />
                    <asp:BehaviorEditorPart ID="Behavioreditorpart1" runat="server" />
                    <asp:LayoutEditorPart ID="Layouteditorpart1" runat="server" />
                    <asp:PropertyGridEditorPart ID="PropertyGridEditorPart1" runat="server" />
                 </ZoneTemplate>
              </asp:EditorZone>
   </form>

</body> </html></source>