示例#1
0
    protected void Page_Init(object sender, EventArgs e)
    {
        ScriptHelper.RegisterTooltip(this);

        RegisterAngularModule();

        ScriptHelper.RegisterDialogScript(this);
        CssRegistration.RegisterCssLink(this, "~/CMSScripts/jquery/jqueryui/jquery-ui.css");

        if (SiteContext.CurrentSite.SiteIsContentOnly && SitePresentationUri == null)
        {
            ShowError(GetString("campaign.incorrectPresentationUrl"));
            MessagesPlaceHolder.ContainerCssClass = CssHelper.EnsureClass(MessagesPlaceHolder.ContainerCssClass, "cms-campaigns-edit");
        }
    }