Esempio n. 1
0
    protected void OnUpdateHistoryNavigate(object sender, nStuff.UpdateControls.HistoryEventArgs e)
    {
        if (!String.IsNullOrEmpty(e.EntryName))
        {
            string rawUrl = e.EntryName;

            string mainControl, queryString;
            ExtractFragmentData(rawUrl, out mainControl, out queryString);

            MainContext.RedirectMainControl(mainControl, queryString);
        }
        else
        {
            MainContext.RedirectMainControl("Default.ascx");
        }

        uxContentUpdatePanel.Update();
    }
Esempio n. 2
0
    protected void OnUpdateHistoryNavigate(object sender, nStuff.UpdateControls.HistoryEventArgs e)
    {
        if (!String.IsNullOrEmpty(e.EntryName))
        {
            string rawUrl = e.EntryName;

            string mainControl, queryString;
            ExtractFragmentData(rawUrl, out mainControl, out queryString);

            MainContext.RedirectMainControl(mainControl, queryString);
        }
        else
        {
            AdminErrorMainControl.RedirectToErrorPage(MainContext, "Error", _errorMessage);
        }

        uxContentUpdatePanel.Update();
    }