コード例 #1
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            customViewState.Add("SavedBasketHash", _CurrentBasketHash);
            customViewState.Add("SavedShipRates", EncodeSavedShipRates());
            VS_CustomState.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #2
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            customViewState.Add("M", _PageMode);
            customViewState.Add("P", _ShowProvinceList ? "1" : string.Empty);
            customViewState.Add("C", _SelectedCountryCode);
            customViewState.Add("A", _EditAddressId.ToString());
            VS.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #3
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            customViewState.Add("CurrentPage", _CurrentPage.ToString());
            VS_CustomState.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #4
0
        private void SaveCustomViewState()
        {
            List <string> selectedNames = new List <string>();

            foreach (ListItem item in FieldNamesList.Items)
            {
                if (item.Selected)
                {
                    selectedCount++;
                    selectedNames.Add(item.Value);
                }
            }

            //SHOW SAVE BUTTONS WHEN ATLEAST ONE FIELD IS SELECTED FOR EDITING
            SaveButton.Visible         = selectedCount > 0;
            SaveAndCloseButton.Visible = SaveButton.Visible;

            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            customViewState.Add("CurrentPage", _CurrentPage.ToString());
            customViewState.Add("ColumnNames", string.Join(",", selectedNames.ToArray()));
            VS_CustomState.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }