protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["bmpObj"] = null;
                //bmp = new BitMapModel();
                Initialize();

                //DataBind();
            }
            else
            {
                if ((BitMapModel)Session["bmpObj"] != null)
                {
                    bmp = (BitMapModel)Session["bmpObj"];
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Initialize();
            bmp = (BitMapModel)Session["bmpObj"];
            string key        = bmp.merchantKey;
            string strMessage = Request["responseParameter"];
            string path       = Server.MapPath("~/log/responseLog.txt");

            using (System.IO.StreamWriter writer = new System.IO.StreamWriter(path, true))
            {
                writer.WriteLine(strMessage);
                writer.Close();
            }

            responseparams1 = EncDec.Decrypt(key, strMessage.Substring(strMessage.IndexOf("||", 0) + 2));
            Table table = new Table();

            dataWithoutMerchantID          = responseparams1;
            blockExistanceField            = dataWithoutMerchantID.Substring(0, dataWithoutMerchantID.IndexOf("||", 0));
            dataWithoutBlockExistenceField = dataWithoutMerchantID.Substring(dataWithoutMerchantID.IndexOf("||", 0) + 2);
            splittedDataBlock = dataWithoutBlockExistenceField.Split(new[] { "||" }, StringSplitOptions.None);
            char[] charArr = blockExistanceField.ToCharArray();
            for (int i = 0, j = 0; i < charArr.Length; i++)
            {
                switch (i)
                {
                case 0:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], paymentKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;

                case 1:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], cardKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;

                case 2:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], statusKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;

                case 3:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], merchantKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;

                case 4:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], fraudKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;

                case 5:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], dccKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;

                case 6:
                {
                    if (charArr[i] == '1')
                    {
                        DecodeFields(splittedDataBlock[j], tokenKeys);
                        j++;
                    }
                    else
                    {
                        continue;
                    }
                }
                break;
                }
            }
        }