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

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

            customViewState["P"] = _LastPasswordValue;
            VS.Value             = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #3
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

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

            customViewState["PID"] = _ProductId.ToString();
            customViewState["OL"]  = string.Empty + _OptionList;
            customViewState["SKP"] = GetCommaDelimitedKitProducts();
            VS.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #5
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            customViewState["CurrentPath"]     = this.CurrentPath;
            customViewState["CurrentFileName"] = this.CurrentFileName;
            //WE WILL PARSE THE FILE NAME LIST WHEN DELETE BUTTON IS CLICKED
            customViewState["FileNameList"] = string.Join("|", _FileNameList.ToArray());
            VS_CustomState.Value            = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #6
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());
        }
コード例 #7
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            if (_SelectedProductIds.Count > 0)
            {
                customViewState["SP"] = AlwaysConvert.ToList(",", _SelectedProductIds.ToArray());
            }
            else
            {
                customViewState["SP"] = string.Empty;
            }
            VS.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }
コード例 #8
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());
        }
コード例 #9
0
        private void SaveCustomViewState()
        {
            UrlEncodedDictionary customViewState = new UrlEncodedDictionary();

            customViewState["ShowEditGrid"]    = _ShowEditGrid.ToString();
            customViewState["EnableScrolling"] = _EnableScrolling.ToString();
            if (_SelectedCategoryIds.Count > 0)
            {
                customViewState["SC"] = AlwaysConvert.ToList(",", _SelectedCategoryIds.ToArray());
            }
            else
            {
                customViewState["SC"] = string.Empty;
            }
            if (_SelectedFields.Count > 0)
            {
                customViewState["SF"] = string.Join(",", _SelectedFields.ToArray());
            }
            else
            {
                customViewState["SF"] = string.Empty;
            }
            VS.Value = EncryptionHelper.EncryptAES(customViewState.ToString());
        }