Go to the documentation of this file.00001 using System;
00002 using N2.Web.UI;
00003 using N2.Web.UI.WebControls;
00004 using System.Web;
00005 using System.Web.Mvc;
00006
00007 namespace N2.Web.Mvc.Html
00008 {
00009 public static class DroppableZoneExtensions
00010 {
00011 public static ControlPanelState ControlPanelState(this HttpContextBase context)
00012 {
00013 return ControlPanel.GetState(context.User, context.Request.QueryString);
00014 }
00015
00023 public static DroppableZoneHelper DroppableZone(this HtmlHelper helper, string zoneName)
00024 {
00025 return new DroppableZoneHelper(helper, zoneName, helper.CurrentItem());
00026 }
00027
00035 public static DroppableZoneHelper DroppableZone(this HtmlHelper helper, ContentItem item, string zoneName)
00036 {
00037 return new DroppableZoneHelper(helper, zoneName, item);
00038 }
00039 }
00040 }