protected void LB_Next_Click(object sender, EventArgs e)
    {
        HttpCookieCollection objHttpCookieCollection = Request.Cookies;
        HttpCookie           objHttpCookie           = objHttpCookieCollection.Get("MatCookie5639sb");
        string strMatrimonialID = Crypto.DeCrypto(objHttpCookie.Values["MatrimonialID"]);

        bool IsRequest = false;

        if (HF_Type.Value == "2")
        {
            IsRequest = true;
        }

        //Previous Enabled
        LB_Previous_1.Enabled = true;
        LB_Previous_2.Enabled = true;
        //Getting values
        int intStart = int.Parse(HF_Start.Value);
        int intCount = InternalMessage.GetPhotoHoroPasswordCount(strMatrimonialID, IsRequest);
        int intCurrent;

        intCurrent = intCount - (intStart + 10);
        //Update Start Pointer
        intStart      += 10;
        HF_Start.Value = (intStart).ToString();
        if (intCurrent < 10)
        {
            LB_Next_1.Enabled = false;
            LB_Next_2.Enabled = false;
            L_Current_1.Text  = (intStart + intCurrent).ToString();
            L_Current_2.Text  = (intStart + intCurrent).ToString();
        }
        else
        {
            L_Current_1.Text = (intStart + 10).ToString();
            L_Current_2.Text = (intStart + 10).ToString();
        }
        //Getting SSList

        LoadList(InternalMessage.GetPasswordList(strMatrimonialID, 0, IsRequest), intStart, IsRequest);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HtmlMeta objMeta = new HtmlMeta();
            objMeta.Name    = "Description";
            objMeta.Content = WebConfig.GetValues("MetaDiscription");
            this.Header.Controls.Add(objMeta);

            // Adding meta KeyWords
            objMeta         = new HtmlMeta();
            objMeta.Name    = "keywords";
            objMeta.Content = WebConfig.GetValues("MetaKeword");
            this.Header.Controls.Add(objMeta);

            bool IsRequest = false;
            switch (Request.QueryString["id"])
            {
            case "1":
                L_Type.Text   = "Grant";
                HF_Type.Value = "2";
                IsRequest     = false;
                break;

            case "2":
                L_Type.Text   = "Request";
                HF_Type.Value = "1";
                IsRequest     = true;
                break;

            default:
                L_Type.Text   = "Grant";
                HF_Type.Value = "2";
                IsRequest     = false;
                break;
            }

            // Getting User Information Fro Cookie
            HttpCookieCollection objHttpCookieCollection = Request.Cookies;
            HttpCookie           objHttpCookie           = objHttpCookieCollection.Get("MatCookie5639sb");
            string strMatrimonialID = Crypto.DeCrypto(objHttpCookie.Values["MatrimonialID"]);

            // Count
            int intCount = InternalMessage.GetPhotoHoroPasswordCount(strMatrimonialID, IsRequest);
            //Setting Count
            L_Last_2.Text = intCount.ToString();
            L_Last_1.Text = intCount.ToString();
            if (intCount > 0)
            {
                LoadList(InternalMessage.GetPasswordList(strMatrimonialID, 0, IsRequest), 0, IsRequest);

                IB_Delete_1.Visible = true;
                IB_Delete_2.Visible = true;
                if (intCount < 10)
                {
                    LB_Next_1.Enabled = false;
                    LB_Next_2.Enabled = false;

                    L_Current_1.Text = intCount.ToString();
                    L_Current_2.Text = intCount.ToString();
                }
                else
                {
                    LB_Next_1.Enabled = true;
                    LB_Next_2.Enabled = true;

                    L_Current_1.Text = "10";
                    L_Current_2.Text = "10";
                }
                HF_Start.Value = "0";
            }
            else
            {
                L_Current_1.Text = "0";
                L_Current_2.Text = "0";
            }
        }
    }