Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Disabler.DisableSiteDropDown(this);
        _content = new Content();

        FillSiteID();
        FillContentID();

        LoadExistingContent();

        if (Page.IsPostBack)
        {
            ParsePostBack();
            RestoreEmbeddablesAfterPostBack();
        }
        else
        {
            // clear the temporary revision ID if it exists
            Session["newRevision"] = null;

            SetupTree();
            if (_contentEntity != null)
            {
                FillPageContent(_contentEntity);
                LoadBucketsAndEmbeddables(_contentEntity);
            }
        }
    }