コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        EnsureChildControls();
        CMSPage page = Page as CMSPage;

        if (page != null)
        {
            page.EnsureScriptManager();
        }

        if (!RequestHelper.IsPostBack())
        {
            SetupForm(TaskInterval);
        }
    }
コード例 #2
0
    protected override void OnLoad(EventArgs e)
    {
        if (!Visible)
        {
            return;
        }
        CMSPage page = Page as CMSPage;

        if (page != null)
        {
            page.EnsureScriptManager();
        }

        CheckService();
        InitializeToolbar();
    }