【发布时间】:2011-06-12 03:08:23
【问题描述】:
我正在 ASP.net 中创建一个 Web 部件页面,我想显示最小化、恢复、关闭等图标,而不是当前显示的下拉菜单。此代码在菜单中的最小化图标旁边添加了一个图标,但我想完全删除菜单并在每个 Web 部件的右上角呈现 3 个图标。有没有人举例说明如何实现这一目标?
<asp:WebPartManager ID="WebPartManager1" runat="server" Personalization-Enabled="true" >
</asp:WebPartManager>
<asp:WebPartZone ID="WebPartZone1" runat="server" HeaderText="zone 1"> <MinimizeVerb ImageUrl="img/os_minimise.gif" />
<ZoneTemplate>
<asp:Label ID="lblZone1Header" runat="server"><h1>Zone 1</h1></asp:Label>
<uc1:TestControl ID="TestControl1" runat="server" />
</ZoneTemplate>
</asp:WebPartZone>
<asp:WebPartZone ID="WebPartZone2" runat="server" HeaderTexxt="zone 2">
</asp:WebPartZone>
<asp:EditorZone ID="EditorZone1" runat="server">
<ZoneTemplate>
<asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server" />
</ZoneTemplate>
</asp:EditorZone>
【问题讨论】: