Пример #1
0
    /// <summary>
    /// Handles actions performed on the master header.
    /// </summary>
    /// <param name="sender">Sender object.</param>
    /// <param name="e">Event argument</param>
    protected void HeaderActions_ActionPerformed(object sender, CommandEventArgs e)
    {
        switch (e.CommandName.ToLowerCSafe())
        {
        case "lnksavechanges_click":
            SaveSettings();
            break;

        case "lnkresettodefault_click":
            if ((SiteID >= 0) && (mCategoryId > 0) && UserIsGlobalAdmin)
            {
                SettingsGroupViewer.ResetToDefault();
                URLHelper.Redirect(GetRefreshUrl(true));
            }
            break;
        }
    }
Пример #2
0
    /// <summary>
    /// Handles actions performed on the master header.
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void HeaderActions_ActionPerformed(object sender, CommandEventArgs e)
    {
        switch (e.CommandName.ToLower())
        {
        case "lnksavechanges_click":
            SaveSettings();
            break;

        case "lnkresettodefault_click":
            if ((mSiteId >= 0) && (mCategoryId > 0))
            {
                SettingsGroupViewer.ResetToDefault();
                URLHelper.Redirect(string.Format(@"Keys.aspx?resettodefault=1&categoryid={0}&siteid={1}&search={2}&description={3}", mCategoryId, mSiteId, txtSearch.Text, chkDescription.Checked));
            }
            break;
        }
    }