protected void popSelected(Object sender, EventArgs e)
    {
        txtboxMemberId.Text  = "";
        txtcurbal.Text       = "";
        txtRemarks.Text      = "";
        txtBasePoint.Text    = "";
        txtSNIPSJRPoint.Text = "";
        //txtThresholdPoint.Text = "";
        txtTotalPoint.Text    = "";
        txtReferenceId.Text   = "";
        btnUpdate.Enabled     = true;
        popGridSearch.Visible = true;
        GridViewRow row      = popGridSearch.SelectedRow;
        string      memberid = row.Cells[1].Text;

        txtboxMemberId.Text = row.Cells[1].Text;
        txtReferenceId.Text = row.Cells[3].Text;

        IncentiveBusiness busobj = new IncentiveBusiness();
        PublishData       obj    = new PublishData();

        obj = busobj.SelectPublicationData(memberid, row.Cells[3].Text.Trim());
        int ThresholdPublicationNo = Convert.ToInt16(ConfigurationManager.AppSettings["ThresholdPublicationNo"]);
        int count = busobj.CountThresholdPublicationPoint(obj);

        obj = busobj.getIsStudentAuthor(txtReferenceId.Text);
        //point 3 (crosses 6 publication) is awarded once in a year
        //if (count > ThresholdPublicationNo)
        //{
        //    if (obj.MUNonMU == "M")
        //    {
        //        txtThresholdPoint.Enabled = true;
        //    }
        //    else
        //    {
        //        txtThresholdPoint.Enabled = false;
        //    }
        //}
        //else
        //{
        //    txtThresholdPoint.Enabled = false;
        //    txtThresholdPoint.Text = "";
        //}

        if (obj.AuthorType == "P" || obj.isCorrAuth == "Y")
        {
            txtSNIPSJRPoint.Enabled = true;
        }
        else
        {
            txtSNIPSJRPoint.Enabled = true;
            txtSNIPSJRPoint.Text    = "";
        }

        IncentivePoint obj1 = new IncentivePoint();

        obj1                 = busobj.SelectMemberCurBalance(memberid);
        txtcurbal.Text       = obj1.CurrentBalance.ToString();
        Session["IsStudent"] = obj.IsStudentAuthor;
        Session["Title"]     = obj.TitleWorkItem;
    }