Esempio n. 1
0
        protected void AddBrowseHistory()
        {
            // First, begin with current MainContext query string and apply the query string from
            // other controls (e.g. page number, search).
            _browseHistoryQuery.AddQuery(MainContext.QueryString);

            OnBrowseHistoryAdding(new BrowseHistoryAddEventArgs(_browseHistoryQuery));

            foreach (IAdvancedPostbackControl control in _postbackControls)
            {
                control.UpdateBrowseQuery(_browseHistoryQuery);
            }

            if (GridHelper != null)
            {
                _browseHistoryQuery.AddQuery("Sort", GridHelper.GetFullSortText());
            }

            MainContext.AddBrowseHistory(MainContext.LastControl, _browseHistoryQuery.RawQueryString);
        }