protected void btnSendTo_Click(object sender, EventArgs e)
        {
            try
            {
                DataTable dt = new DataTable();
                DataRow dr = null;
                UserBLL user = new UserBLL();
                StakeInfoBLL stake = new StakeInfoBLL();

                if (user.varifypin((string)LumexSessionManager.Get("ActiveUserId"), txtbxUserPin.Text.Trim()))
                {
                    dt.Columns.Add(new DataColumn("Serial"));
                    dt.Columns.Add(new DataColumn("StakePin"));
                    dt.Columns.Add(new DataColumn("StakeName"));

                    for (int i = 0; i < gridviewSendKeyList.Rows.Count; i++)
                    {
                        dr = dt.NewRow();

                        Label lblSerial = (Label)gridviewSendKeyList.Rows[i].FindControl("lblSerial");
                        dr["Serial"] = lblSerial.Text;
                        dr["StakeName"] = gridviewSendKeyList.Rows[i].Cells[1].Text.ToString();
                        dr["StakePin"] = gridviewSendKeyList.Rows[i].Cells[2].Text.ToString();
                        dt.Rows.Add(dr);

                    }

                    stake.sendto = txtbxTransferTo.Text;
                    stake.transferBy = (string)LumexSessionManager.Get("ActiveUserId");
                    stake.sendSms = txtbxSendSMS.Text;
                    if (stake.sendto != stake.transferBy)
                    {
                        bool status = stake.updateKeyonTransfer(dt);

                        if (status)
                        {
                            string message = " <span class='actionTopic'>" +
                                             " This Pin is transfered successfully. Thanks" + "</span>.";
                            MyAlertBox(
                                "var callbackOk = function () { window.location = \"/a/stake/stakekeymanage.aspx\"; }; SuccessAlert(\"" +
                                "Process Success" + "\", \"" + message + "\", callbackOk);");
                        }
                    }
                    else
                    {

                        string message = " <span class='actionTopic'>" +
                                         "Key Sender and Receiver will not Same. Thanks" + "</span>.";
                        MyAlertBox(
                            "var callbackOk = function () { window.location = \"/a/stake/stakekeymanage.aspx\"; }; WarningAlert(\"" +
                            "Process Failed" + "\", \"" + message + "\", \"\");");
                    }

                }
                else
                {
                    string message = " <span class='actionTopic'>" + " This Pin is already transfered, you can not Deactive this Pin. Thanks" + "</span>.";
                    MyAlertBox(
                        "var callbackOk = function () { window.location = \"/a/stake/stakekeymanage.aspx\"; }; WarningAlert(\"" +
                        "Process Failed" + "\", \"" + message + "\", \"\");");
                }

            }
            catch (Exception)
            {

                throw;
            }
        }