我想知道是否可以提供 dropzone 名称,所以当我在编辑模式下打开页面以查看 DropZone 控件标题中的名称时?
问问题
200 次
1 回答
2
I can't think of a way to make a direct association without alterations to the code that would be destroyed during an upgrade. However, you should be able to show/hide headings for each by detecting when the page is or is not in Edit mode. For example, if you set a heading in your code like this:
<asp:Panel ID="dz1Heading" runat="server" visible="false">
<h2>Zone 1</h2>
</asp:Panel>
<PB:DropZone ID="Zone1" runat="server" />
Then you can show/hide that heading like so in code behind:
protected void Page_Load(object sender, EventArgs e){
var myPage = (PageBuilder)this.Page;
if(myPage.Status == Mode.Editing)
dz1Heading.Visible = true;
}
That would make the heading invisible unless the page is in edit mode, in which case it becomes visible to the editor.
于 2013-10-08T20:48:44.650 回答